How to get the top committers in git? Like in github:

But plain text is fine showing number of commits and author names/emails sorted by the number of commits.

Login

How to get the top committers in git? Like in 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>
```

Copyright © SysTutorials.
User contributions licensed under cc-wiki with attribution required.

Hosted on Dreamhost

Hosted on Dreamhost

...