GitHub - List commits by author

后端 未结 2 1708
渐次进展
渐次进展 2020-12-02 07:53

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

相关标签:
2条回答
  • 2020-12-02 08:59

    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
    
    0 讨论(0)
  • 2020-12-02 08:59

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

    0 讨论(0)
提交回复
热议问题