Today I learned how to count git commits in a repository by author name:
git shortlog -s -n --all --no-merges
Explanation:
git shortlog: summarizegit logoutput-s: only count commits-n: sort by commit number instead of author name--all: count commits in all branches--no-merges: exclude merge commits
If you want to include author emails add -e