[Git] Compare a stash with the current HEAD

Created on November 30, 2026

Use git diff with HEAD and a stash reference to see the difference between the current commit and the stashed working tree.

git diff HEAD 'stash@{0}'

Use git stash list to find the reference to compare.

$ git stash list
stash@{0}: WIP on master: e12d1d0 First commit

To compare the stash with the commit it was originally based on, see showing a stash diff with git stash show -p.

Git