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?

  • Smart auto-completition for staged git file names, used with difftool
  • How to color the Git console in Ubuntu?
  • msysgit: Unicode font warning
  • Output the console text of a Jenkins job that my Job is running
  • Using git from Package Manager Console in Visual Studio
  • How can I output from java code to the Jenkins console?
  • Dealing with declined / rejected pull requests
  • git - how to handle a branch “test”
  • Hard reset of a single file
  • Visual Studio Online scheduled build can't find my branch
  • Importing Gitlab Wiki to new Gitlab instance
  • Use gruntjs as precommit hook
  • 2 Solutions collect form web for “How to search in commit messages using command line?”

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

    –git help log

    git log --oneline | grep PATTERN
    Git Baby is a git and github fan, let's start git clone.