How to recover the number of commits made by a person?

Asked

Viewed 188 times

4

What is the Git command to recover the number of commits made by a particular programmer?

1 answer

7


Only one command is enough to get the total commit output of all authors:

git shortlog -n -s

Exit:

9  paulomartinhago
1  Lucas Miguel

Another way to get a result, now by Author:

git shortlog -n --author=paulomartinhago

Exit:

paulomartinhago (9):
      Demo commit 9
      Demo commit 8
      Demo commit 7
      Demo commit 6
      Demo commit 5
      Demo commit 4
      Demo commit 3
      Demo commit 2
      Demo commit 1

Or as follows, without listing commits:

git shortlog -n -s --author=paulomartinhago

Exit:

9  paulomartinhago

Browser other questions tagged

You are not signed in. Login or sign up in order to post.