198

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.

Mark Amery
  • 143,130
  • 81
  • 406
  • 459
PNS
  • 19,295
  • 32
  • 96
  • 143

3 Answers3

240

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/master?author=dave.methvin@gmail.com 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
Mark Amery
  • 143,130
  • 81
  • 406
  • 459
Prem
  • 5,844
  • 3
  • 25
  • 23
  • 1
    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. – Mark Amery Oct 11 '14 at 11:44
  • no problem Mark!! as long as it helps people, i dont mind. Anyways, thanks for latest update over the topic. – Prem Oct 11 '14 at 17:11
  • 1
    This works for some users but for other users the names are not clickable. Why? – Edwin Evans Feb 05 '15 at 20:34
  • @EdwinEvans, what happens if you try the url alternative above? – Ricardo Apr 10 '15 at 21:22
  • 2
    @EdwinEvans they're commit authors without GitHub accounts. I've added a note about these to the answer. – Mark Amery Nov 14 '15 at 21:39
  • This only shows commits on that given branch. I still can't find a way to see commits by that user on any branch of the project (which is what "git log" seems to show on the cmd line). Can't believe there's no easy way to do this... as a manager it's really frustrating that I can't just say to GitHub "show me all recent commits by my employee x" – JoeCool Aug 15 '18 at 17:31
33

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.

Ilyich
  • 4,966
  • 3
  • 39
  • 27
  • 6
    Thank you. This should be the correct answer since the question does not specify per-repo commits, which all other answers make reference to. – Juan Jan 20 '22 at 17:45
  • 1
    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 – Dzmitry Vasilevsky Jan 26 '23 at 17:29
26

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

Brad Parks
  • 66,836
  • 64
  • 257
  • 336
  • This just repeats content that I added to the accepted answer over a year earlier; -1. – Mark Amery May 07 '17 at 14:28
  • 5
    yeah you're right for sure - but it cuts to the chase ;-) – Brad Parks May 08 '17 at 01:53
  • 10
    a little too later now, but is it possible to get all the commits of a Github user regardless of the repository? – asgs Jun 21 '17 at 20:23
  • 4
    @asgs - it appears that you can do this by going to Github's advanced search, https://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](https://github.com/search?l=&q=test+user%3Agregorwolf&ref=advsearch&type=Commits&utf8=%E2%9C%93) – Brad Parks Jun 27 '17 at 12:20
  • 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 :/ – asgs Jun 27 '17 at 14:22
  • Yeah you're right... I tried a few more approaches, but don't see any way to get it... I guess you could try doing a few searches for a single letter, then combining results... e.g. Search for "e", the most common letter in the english language ;-) I'll let you know if something else comes to mind! – Brad Parks Jun 27 '17 at 16:39