Skip to content

Instantly share code, notes, and snippets.

@hartym
Forked from netshade/gist:1125810
Created May 3, 2012 09:45
Show Gist options
  • Save hartym/2584767 to your computer and use it in GitHub Desktop.
Save hartym/2584767 to your computer and use it in GitHub Desktop.
git stash grep (bash)
stashgrep() {
for i in `git stash list | awk -F ':' '{print $1}'`; do
git stash show -p $i | grep -H --label="$i" "$1"
done
}
@rafbm
Copy link

rafbm commented May 28, 2018

@unthought Beautiful. Thanks so much for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment