Created
July 18, 2016 04:27
-
-
Save ShinjiKobayashi/a409d5aa278ee83863015f6c7452eb0b to your computer and use it in GitHub Desktop.
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 branch in `git branch -r` | |
do | |
if [[ $branch != *"->"* ]] | |
then | |
echo $branch | |
git ls-tree -r $branch | grep --color -ns $1 | |
fi | |
done | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment