Git Tip: Viewing a Git Stash

April 30, 2012

I use `git stash` very often to set some code aside while I work temporarily in another branch.  Sometimes, I want to peek at what I have stashed instead of taking it out.  You can do that very easily with `git stash show`:

git stash show -p  # view a diff