Peek at your git stash

Written on August 3, 2015

I use git stash when I’m not quite ready to commit work but need to pull in the latest changes from a remote repo. This command allows you to peek into what you’ve stashed away in git:

git stash show -p

This stash command is definitely helpful as sometimes I forget I’ve got anything stashed away or if a lot of time has passed, what the contents of the stash was.

Stay in touch

Thanks for reading this article. I'd love to stay in touch and share more tips on programming and side projects with you. Sign up and I'll send you my articles straight to your email, you'll also get a free copy of the light themed version of my Git cheat sheet.
Git cheat sheet preview image