Using Git, how could I search within all files in all local branches for a given string?
GitHub specific: is it possible to perform the above search across all GitHu
If you use @manojlds Git grep command and get an error:
-bash: /usr/bin/git: Argument list too long"
then you should use xargs:
git rev-list --all | xargs git grep "string/regexp"
Also see How to grep (search) committed code in the Git history