How to show the last stashed content?
git stash show -p
To see the contents of your last stash use git stash show -p
, where -p makes git print the changes in the stashed files.
git stash list
stash@{0}: WIP on main: 0e9c1e9 Readme changes
stash@{1}: WIP on main: c335861 Changes in code and README
git stash show -p
diff --git a/README.md b/README.md
index 376816e..79d5fb4 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1 @@
-Really
-Old
-Readme
-Content
+Updating the contents of the README file.
See git stash to learn more about it.