Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

console

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

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

like image 976
Coderama Avatar asked Sep 29 '10 23:09

Coderama


People also ask

How do I find commit messages?

You can now search for commits from either the main search page or within a repository. Quickly discover who removed set -e or find commits that involved refactoring. Check out… You can now search for commits from either the main search page or within a repository.

How do I find a specific commit in git?

To find out which files changed in a given commit, use the git log --raw command. It's the fastest and simplest way to get insight into which files a commit affects.

How do I see all commit messages in git?

On GitHub.com, you can access your project history by selecting the commit button from the code tab on your project. Locally, you can use git log . The git log command enables you to display a list of all of the commits on your current branch. By default, the git log command presents a lot of information all at once.


1 Answers

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

--git help log

like image 89
hobbs Avatar answered Sep 24 '22 15:09

hobbs