[Git] Show stash diffs with git stash show -p

Created on November 28, 2026

You can use git stash show -p to display the diff of changes you saved with git stash.

Show the diff for the latest stash

To compare the stashed working tree against the commit that was checked out when the stash was created (HEAD at stash time), run with -p (or --patch).

git stash show -p

Example output:

diff --git a/file.txt b/file.txt
index 89b24ec..7bba8c8 100644
--- a/file.txt
+++ b/file.txt
@@ -1 +1,2 @@
 line 1
+line 2

To inspect a specific stash, append its name.

git stash show -p stash@{1}

With git diff, use the stash commit's first parent as the starting point. It points to the commit that was HEAD when the stash was created.

git diff 'stash@{0}^1' 'stash@{0}'

List changed files and line counts

Use --stat to display the changed file names and line counts as a diffstat summary.

git stash show --stat

Example output:

 file.txt | 1 +
 1 file changed, 1 insertion(+)

References

Git