GitHub - 按作者列出提交

时间:2012-08-29 09:02:26

标签: git github

GitHub上是否有任何方式可以列出单个作者在浏览器中提交的所有提交(既不是本地提交,也不是通过git log,也不是通过API)?

单击提交列表中的用户名(提交历史记录)只会导致该用户的个人资料页面。检查GitHub用户界面和搜索(Google,StackOverflow)并没有显示出这样做的方法。

2 个答案:

答案 0 :(得分:152)

如果作者有一个GitHub帐户,只需在提交历史记录中的任何位置单击作者的用户名,您可以看到的提交将被过滤到该作者的提交:

Screenshot showing where to click to filter down commits

您还可以点击repo的“贡献者”页面上其名称下方的“n提交”链接:

Another screenshot

或者,您可以直接将?author=<theusername>?author=<emailaddress>附加到网址。例如,https://github.com/jquery/jquery/commits/master?author=dmethvinhttps://github.com/jquery/jquery/commits/master?author=dave.methvin@gmail.com都会给我:

Screenshot with only Dave Methvin's commits

对于没有GitHub帐户的作者,只有按电子邮件地址过滤才有效,您需要手动将?author=<emailaddress>添加到URL中 - 作者姓名不能从提交列表中点击。


您还可以使用

从命令行获取特定作者的提交列表
git log --author=[your git name]

示例:

git log --author=Prem

答案 1 :(得分:11)

在查看&#34;提交&#34;时,只需将?author=<emailaddress>?author=<githubUserName>添加到网址即可。回购的一部分。

相关问题