search for a string across all branches git grep “regexp” $(git rev-list –all) git branch -a | tr -d \* | sed '/→/d' | xargs git grep “regexp”