显示每位作者的提交总数

为了获得每个开发人员或贡献者在存储库上进行的提交总数,你只需使用 git shortlog:

git shortlog -s

它提供作者姓名和每个提交的数量。

此外,如果要在所有分支上计算结果,请在命令中添加 --all 标志:

git shortlog -s --all