开发者

How to find commits by a specific user in Git? [duplicate]

This question already has answers here: How can I view a git log of just one us开发者_运维知识库er's commits? (17 answers) Closed 8 years ago.

Our project uses Git as the version control system and recently I needed to review someone's commits. How can I see a list of commits made by a specific user?


git log --author=<pattern> will show the commit log filtered for a particular author. (--committer can be used for committer if the distinction is necessary).

http://git-scm.com/docs/git-log


Try this:

git log --author=<name or email>

or pass the same option to gitk, or if already in gitk, go to view > new view, and fill in the appropriate field. The name doesn't have to be exact; it's matched as a regex (a substring, in the trivial case) against the author field.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜