Skip to content

Instantly share code, notes, and snippets.

@netshade
Created August 4, 2011 18:15
Show Gist options
  • Save netshade/1125810 to your computer and use it in GitHub Desktop.
Save netshade/1125810 to your computer and use it in GitHub Desktop.
git stash grep for zsh
stashgrep() {
for i in `git stash list | awk -F ':' '{print $1}'`; git stash show -p $i | grep -H --label="$i" "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment