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?
+5
A:
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.
Jefromi
2010-06-02 01:42:02
+7
A:
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://www.kernel.org/pub/software/scm/git/docs/git-log.html
Amber
2010-06-02 01:43:14
You mean author. `--committer` is for the committer. The two are different if, for example, the commit is from a patch sent by email. Then the committer (a maintainer) and the author are two different people.
wilhelmtell
2010-06-02 02:16:10
True. Updated answer to mention both.
Amber
2010-06-02 03:26:44