number of commits by author git code example
Example 1: git commits by author
# commits by author
git shortlog -s --author="authorName"
# for all authors
git shortlog -sn --all
Example 2: git count commits by author
git shortlog -s -n --all --no-merges