Created
November 2, 2011 13:23
-
-
Save tjake/1333611 to your computer and use it in GitHub Desktop.
search all branches for a file
This file contains hidden or 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
for branch in `git for-each-ref --format="%(refname)" refs/heads` | |
do | |
echo $branch ; echo `git ls-tree -r --name-only $branch | grep -i $1` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment