Skip to content

Instantly share code, notes, and snippets.

@siers
Created December 29, 2014 03:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siers/eba9ec3980d3319f666a to your computer and use it in GitHub Desktop.
Save siers/eba9ec3980d3319f666a to your computer and use it in GitHub Desktop.
git-stack-log
#!/bin/sh
stashes() {
git stash list | sed "s/:.*//" | tr '\n' ' '
}
for s in $(stashes); do
git log -1 --format=short "$s" | cat
echo
git stash show -u "$s" | cat
echo
done | $PAGER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment