GitHub - 按作者列出提交 [英] GitHub - List commits by author

查看:31
本文介绍了GitHub - 按作者列出提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 或 https://github.com/jquery/jquery/commits/master?author=dave.methvin@gmail.com 都给我:

对于没有 GitHub 帐户的作者,只能通过电子邮件地址进行过滤,并且您需要手动将 ?author= 添加到 URL - 作者姓名将无法点击来自提交列表.

<小时>

您还可以使用

从命令行获取特定作者的提交列表

git log --author=[你的git名称]

示例:

git log --author=Prem

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.

解决方案

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:

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

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:

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

这篇关于GitHub - 按作者列出提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆