Fri 10 May 2019

How to see what's in a git stash

The following command shows the changes recorded in the stash as a diff between the stashed state and its original parent in patch form:

git stash show -p stash@{0}

If there is only one stash or you want to see the latest one, use:

git stash show -p

And if you add --names-only to either one only the file names are shown.