215

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.

0

4 Answers 4

253

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 
Sign up to request clarification or add additional context in comments.

6 Comments

prem, I hope you'll forgive me commandeering your answer in the way I've done here. The (IMO ridiculous) closure of this question leaves me unable to provide the (simple) answer in any other way.
no problem Mark!! as long as it helps people, i dont mind. Anyways, thanks for latest update over the topic.
This works for some users but for other users the names are not clickable. Why?
@EdwinEvans, what happens if you try the url alternative above?
@EdwinEvans they're commit authors without GitHub accounts. I've added a note about these to the answer.
|
55

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.

2 Comments

Thank you. This should be the correct answer since the question does not specify per-repo commits, which all other answers make reference to.
one note: it doesn't show not merged into default repo branch commits so if your colleаgue worked on some big feature and haven't created a PR - it will be hidden from both search and his profile ativities
27

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

6 Comments

This just repeats content that I added to the accepted answer over a year earlier; -1.
yeah you're right for sure - but it cuts to the chase ;-)
a little too later now, but is it possible to get all the commits of a Github user regardless of the repository?
@asgs - it appears that you can do this by going to Github's advanced search, github.com/search/advanced?q=test, then filling in the username you're looking for in the "From These Owners" section. Then click the tabs at the top to filter to repos, commits, etc. I randomly did one for a user, and it seems to work. Check it out here
Thanks, this is really helpful. I wish Github would provide an option to tweak the number of results per page, instead of the 10 rows they provide at the moment. Or Export as CSV would've been even better. EDIT - if we remove the search keyword test, it doesn't show any results; so it doesn't like we could get all the commits made by a user :/
|
1

GitHub provides this in the UI now.

Navigate to the commit history for any branch, and then you can optionally choose the author and a date range (or switch the branch).

Navigate to the history for a branch

Filter by author and date-range

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.