Git diff against a stash

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

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!

Answers

See the most recent stash:

git stash show -p

See an arbitrary stash:

git stash show -p stash@{1}

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).

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/7677736/git-diff-against-a-stash

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils