如何在Git中查找特定用户的提交?

我们的项目使用Git作为版本控制系统,最近我需要审查某人的提交。如何查看特定用户所做的提交列表?

110865 次浏览

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.

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