Possible Duplicate:
How to search through all commits in the repository?

Is there a way to search through commit headers using the command line?

3

2 Answers

git log --grep=<pattern> Limit the commits output to ones with log message that matches the specified pattern (regular expression). 

--git help log

7
git log --oneline | grep PATTERN 
7