GitHub - 列出作者提交 [英] GitHub - List commits by author
问题描述
GitHub 上有没有任何方法可以列出浏览器中单个作者所做的所有提交(既不是本地的,例如通过<$ c
点击提交列表中的用户名称(提交历史记录),只需导出到该用户的个人资料页面。检查GitHub用户界面和搜索(Google,StackOverflow)并没有提供这种方法。
GitHub帐户,只需在提交历史记录中的任意位置单击作者的用户名,您可以看到的提交将被筛选至该作者的用户名:您也可以点击在回购的贡献者页面的名称下方的'n提交'链接:
另外,您可以直接附加?author =< theusername>
或?author =< emailaddress>
添加到网址。例如, https://github.com/jquery/jquery/commits/master? author = dmethvin 或 https:// github .com / jquery / jquery / commits / master?author=dave.methvin@gmail.com 都给我:
对于没有GitHub账户的作者,电子邮件地址将起作用,并且您需要手动向URL添加?author =< emailaddress>
- 作者名不会从提交列表中点击。
您还可以使用
$从命令行获取特定作者的提交列表b $ b
git log --author = [your git name]
示例:
git日志--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屋!