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