git look at all local branches code example Example: git search all branches git grep "string/regexp" $(git rev-list --all)