开发者

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

开发者 https://www.devze.com 2023-01-18 07:41 出处:网络
This开发者_如何学编程 question already has answers here: Closed 10 years ago. Possible Duplicate:
This开发者_如何学编程 question already has answers here: Closed 10 years ago.

Possible Duplicate:

How to search through all commits in the repository?

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


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

from git help log.


git log --oneline | grep PATTERN
0

精彩评论

暂无评论...
验证码 换一张
取 消