Friday, March 30, 2012

git stash show all

Seems to me there should be a git stash show all command.
Perhaps there is.
Alas, I couldn't find one.

So I wrote one. Not very complicated.

# Created by Jeff Kirby on 3/30/12.
for stash in `git stash list | sed 's/\(\w*\)\:.*/\1/'`
   echo "$stash Contents"
   git stash show $stash