Created
August 13, 2014 23:56
-
-
Save justinabrahms/285cd8e39ae0413e8026 to your computer and use it in GitHub Desktop.
grep your git stash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `git stash list --format="%gd"`; do | |
git stash show -p $i | grep -H --label="$i" "$1" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment