Git Git statistics Show the total number of commits per author


Example

In order to get the total number of commits that each developer or contributor has made on a repository, you can simply use the git shortlog:

git shortlog -s

which provides the author names and number of commits by each one.

Additionally, if you want to have the results calculated on all branches, add --all flag to the command:

git shortlog -s --all