git log --all --grep=<searchterm>
Search commit messages in all branches
This command searches through the commit messages in all branches of the repository for any occurrences of <searchterm>
.
It displays the commit logs that match the search term specified, helping to quickly locate relevant changes or notes.
Variations include using -i
for a case-insensitive search, -n <number>
to limit the number of results, and combining with --author=<name>
to filter commits by a specific author.
Specific examples:
git log --all --grep='carousel'