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?

  • How can I output from java code to the Jenkins console?
  • CLOSED - Just install git but the console don't recognise the git commands
  • Why does PowerCmd show duplicate git commits?
  • Output the console text of a Jenkins job that my Job is running
  • include downstream/child Jenkins job's console output into triggering job's console output
  • msysgit: Unicode font warning
  • How get local root path in svn?
  • How to clone a directory from a remote repo in a Jenkins pipeline script?
  • Git pull should ignore commits in unwanted branches
  • Correct process to merge fork changes into GitHub
  • Workaround git commit
  • Searching code in a specific github Branch
  • 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.