Using Git, how could I search for a string across all branches?

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 GitHub branches? (There are several remote branches on my remote GitHub repository that ideally I wouldn’t have to bring down for this search…)

7 Answers
7

Leave a Comment