How do you search a branch for a specific message in the commit log?

This will only search the current branch:

git log --grep='some-term'

To search all branches, use:

git log --all --grep='some-term'

More: https://stackoverflow.com/questions/7124914/how-to-search-a-git-repository-by-commit-message

Leave a Reply

Your email address will not be published. Required fields are marked *