Skip to content

Instantly share code, notes, and snippets.

@cocodrino
Created April 6, 2021 14:03

Revisions

  1. cocodrino created this gist Apr 6, 2021.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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"