Git number of commits per author on all branches

妖精的绣舞 提交于 2019-12-29 10:12:16

问题


I'd like to get the number of commits per author on all branches. I see that

git shortlog -s -n

Prints a very nice list but it is not counting the commits that are not yet merged from other branches. If iterate this command over every branch then obviously the common commits get counted multiple times. Could you give me a script/command that would yield me the overall picture?


回答1:


git shortlog -s -n --all --no-merges

Will give you statistics for all branches.

EDIT: Added --no-merges to exclude statistics from merge commits.



来源:https://stackoverflow.com/questions/9839083/git-number-of-commits-per-author-on-all-branches

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!