Created
April 9, 2015 23:08
-
-
Save austra/895d0fc7f450658fc564 to your computer and use it in GitHub Desktop.
git log searching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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