Search code examples
gitconsole

How to search in commit messages using command line?


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

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


Solution

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

    from git help log.