Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
search text across git branches
git grep "string/regexp" $(git rev-list --all)
or filtering every commit and only show branches
git grep "your-search" `git show-ref --heads` or git show-ref --heads | xargs git grep "your-search"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment