Skip to content

Instantly share code, notes, and snippets.

@crittermike
Last active March 30, 2020 14:39
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crittermike/ad6474f6454f21d1f46449245679f5bb to your computer and use it in GitHub Desktop.
Save crittermike/ad6474f6454f21d1f46449245679f5bb to your computer and use it in GitHub Desktop.
Search all git commit diffs for a specific string - both regex and non-regex versions
git rev-list --all | xargs git grep '<YOUR REGEX>' # regex
git rev-list --all | xargs git grep -F '<YOUR STRING>' # non-regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment