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.

Layer 1
Terminal Example
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/ b/
index 376816e..79d5fb4 100644
--- a/
+++ b/
@@ -1,4 +1 @@
+Updating the contents of the README file.

See git stash to learn more about it.

Last modified on November 30, 2021.

You might also like