Skip to content

Instantly share code, notes, and snippets.

@austra
Created April 9, 2015 23:08
Show Gist options
  • Save austra/895d0fc7f450658fc564 to your computer and use it in GitHub Desktop.
Save austra/895d0fc7f450658fc564 to your computer and use it in GitHub Desktop.
git log searching
To search the commit log (across all branches) for the given text:
git log --all --grep='my commit message'
To search the actual content of commits through a repo's history, use:
git grep 'my commit message' $(git rev-list --all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment