git .git目录提交
How to get the top committers in git? Like in github:
如何在git中获得最高提交者? 像在github中一样:
But plain text is fine showing number of commits and author names/emails sorted by the number of commits.
但是,纯文本可以显示提交次数以及按提交次数排序的作者姓名/电子邮件。
You may use this command:
您可以使用以下命令 :
git log | grep Author | sort | uniq -c | sort -n -r
Here, count the number of commits by names/emails and show from the authors with highest number of commits.
在此,按名称/电子邮件计数提交次数,并从提交次数最高的作者那里查看。
Example output will be like
示例输出将像
247 Author: Paul Phillips <paulp@improving.org>
45 Author: Dale Wijnand <dale.wijnand@gmail.com>
12 Author: Yamashita Yuu <yamashita@geishatokyo.com>
10 Author: Gilles Cornu <git@gilles.cornu.name>
8 Author: Josh Suereth <joshua.suereth@gmail.com>
5 Author: Mark Canlas <github@htmlism.com>
3 Author: Paul Phillips <paulp@users.noreply.github.com>
2 Author: Jason Zaugg <jzaugg@gmail.com>
2 Author: Channing Walton <channingwalton@mac.com>
1 Author: William Ho <wwwilliamho@gmail.com>
1 Author: Viktor Hedefalk <hedefalk@gmail.com>
1 Author: Tymon Tobolski <i@teamon.eu>
1 Author: Stefan Zeiger <szeiger@novocode.com>
1 Author: Seyi Ogunyemi <micrypt@gmail.com>
1 Author: Rocky Madden <git@rockymadden.com>
翻译自: https://www.systutorials.com/how-to-get-the-top-committers-in-git/
git .git目录提交