Prospero Prospero - 1 year ago 159
Git Question

Git diff against a stash

How can I see the changes un-stashing will make to the current working tree? I would like to know what changes will be made before applying them!

Answer Source
git stash show -p stash@{0}

From the git stash manpages:

By default, the command shows the diffstat, but it will accept any format known to git diff (e.g., git stash show -p stash@{1} to view the second most recent stash in patch form).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download