How to search in commit messages using command line? [duplicate]

Question

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

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

Answer

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

from git help log.

How to commit a change with both "message" and "description" from the command line? [duplicate]

How to tell which commit a tag points to in Git?