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