使用gitlog时,如何按用户进行筛选,以便只看到该用户的提交?


当前回答

如果使用GitHub:

转到分支机构单击提交

它将以以下格式显示列表

branch_x: < comment> 
author_name committed 2 days ago

看到个人作者的承诺;单击authorname,在那里您可以看到该作者在该分支上的所有提交

其他回答

在github上还有一个秘密方法。。。

您可以在提交视图中通过附加param?author=github_handle。例如,链接https://github.com/dynjs/dynjs/commits/master?author=jingweno显示了Dynjs项目的提交列表

我的案例:我使用的是源代码树,我遵循了以下步骤:

按下CRL+3已更改下拉列表作者键入名称“Vinod Kumar”

如果要过滤自己的提交:

git log --author="<$(git config user.email)>"
cat | git log --author="authorName" > author_commits_details.txt

这将以文本格式提供提交。

您甚至可以通过简单地使用用户名的一部分来简化这一点:

git log --author=mr  #if you're looking for mrfoobar's commits