harriroot Asked: 2020-10-10 13:01:47 +0800 CST 2020-10-10 13:01:47 +0800 CST 2020-10-10 13:01:47 +0800 CST 我如何知道每个贡献者的提交次数? 772 我需要确定commits我在 repo 中的用户数量。 就像是: git log --commit por usuario. pepe 23 commits. juan 20 commit git 2 Answers Voted Best Answer julian salas 2020-10-10T13:21:43+08:002020-10-10T13:21:43+08:00 要知道在commits中添加的消息的数量和哪些消息commits,必须执行以下指令: git shortlog 如果你想查看commits每个 repo 用户的信息,你必须这样做: git shortlog | grep "nombre usuario" Alejandro Montilla 2020-11-10T10:37:29+08:002020-11-10T10:37:29+08:00 要了解commits特定用户(称为 git-user)的事实列表,您必须执行: git log --author="usuario-git" --pretty=oneline 这将为您提供如下列表: 3598e4cfcc9474595e84c2991554275f8eadcc10 Add achivement and response 1ee573ee78221ac73d08fa3d0572dfedbcbd9466 Add Assessment section 22282ac459e54a70e723d3b3da058d7a8ba8a552 Enhance of style of the doc commit该用户所做的每一个都将用一行反映。 如果你想要的是commits用户的号码,你可以添加 | wc -l, (称为管道),你应该得到如下内容: git log --author="usuario-git" --pretty=oneline | wc -l 这将为您commit提供该特定用户的数量。 另一方面,在 github 中,您可以列出commit特定用户的事实,如下所示: https://github.com/usuario-git/proyecto-git/commits/master?author=usuario-git 我希望它是有用的。
要知道在
commits
中添加的消息的数量和哪些消息commits
,必须执行以下指令:如果你想查看
commits
每个 repo 用户的信息,你必须这样做:要了解
commits
特定用户(称为 git-user)的事实列表,您必须执行:git log --author="usuario-git" --pretty=oneline
这将为您提供如下列表:
3598e4cfcc9474595e84c2991554275f8eadcc10 Add achivement and response 1ee573ee78221ac73d08fa3d0572dfedbcbd9466 Add Assessment section 22282ac459e54a70e723d3b3da058d7a8ba8a552 Enhance of style of the doc
commit
该用户所做的每一个都将用一行反映。如果你想要的是
commits
用户的号码,你可以添加| wc -l
, (称为管道),你应该得到如下内容:git log --author="usuario-git" --pretty=oneline | wc -l
这将为您
commit
提供该特定用户的数量。另一方面,在 github 中,您可以列出
commit
特定用户的事实,如下所示:https://github.com/usuario-git/proyecto-git/commits/master?author=usuario-git
我希望它是有用的。