re: Find A String in a Massive Git Repo VIEW POST

FULL DISCUSSION
 

You might want to check out the options on the git log command as well, as it can be used to search across all history rather than just all current branches. For example to search all commit messages for the string "foo bar baz":

git log --grep="foo bar baz"

If you want to search file contents, you can use the "pickaxe". Not sure how you do multiple words, but for the single word "foo":

git log -Sfoo

This will search all commits for the word "foo" being added or removed.

 
code of conduct - report abuse