GitHub - List commits by author

GitGithub

Git Problem Overview


Is there any way on GitHub to list all commits made by a single author, in the browser (neither locally, e.g. via git log, nor via the API)?

Clicking on a user name in the list of commits (Commit History) simply leads to that user's profile page. Examining the GitHub UI and searching (Google, StackOverflow) does not reveal a way to do this.

Git Solutions


Solution 1 - Git

If the author has a GitHub account, just click the author's username from anywhere in the commit history, and the commits you can see will be filtered down to those by that author:

Screenshot showing where to click to filter down commits

You can also click the 'n commits' link below their name on the repo's "contributors" page:

Another screenshot

Alternatively, you can directly append ?author=<theusername> or ?author=<emailaddress> to the URL. For example, https://github.com/jquery/jquery/commits/master?author=dmethvin or https://github.com/jquery/jquery/commits/[email protected] both give me:

Screenshot with only Dave Methvin's commits

For authors without a GitHub account, only filtering by email address will work, and you will need to manually add ?author=<emailaddress> to the URL - the author's name will not be clickable from the commits list.


You can also get the list of commits by a particular author from the command line using

git log --author=[your git name]

Example:

git log --author=Prem

Solution 2 - Git

Just add ?author=<emailaddress> or ?author=<githubUserName> to the url when viewing the "commits" section of a repo.

Solution 3 - Git

Replace torvalds with Github username of the author you want.

https://github.com/search?o=desc&s=committer-date&type=Commits&q=author:torvalds

You will see all commits the author made to all repositories sorted by commit date descending.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPNSView Question on Stackoverflow
Solution 1 - GitPremView Answer on Stackoverflow
Solution 2 - GitBrad ParksView Answer on Stackoverflow
Solution 3 - GitIlyichView Answer on Stackoverflow