How do you view the contents of a stash?
IntermediateConceptUndoing changes: reset, revert, restore and reflog
Answer
git stash show gives a diffstat, -p the patch. A stash is a commit with up to three parents (HEAD, index, untracked) so you can also git show stash@{1}.
git stash show -p stash@{1}
git diff stash@{0}^1 stash@{0}
More on Undoing changes: reset, revert, restore and reflog
What are the three modes of `git reset`?BeginnerWhat is the difference between `git reset` and `git revert`?BeginnerHow do you discard changes in one file?BeginnerHow do you recover a commit after `git reset --hard`?IntermediateCan you recover uncommitted changes lost by `git reset --hard` or `git checkout .`?IntermediateWhat does `git commit --amend` do to the reflog and to the old commit?Intermediate