TIL how to count git commits in a repository by author name
1 minute read Published:
Count git commits in a repository by author name
Today I learned how to count git commits in a repository by author name:
git shortlog -s -n --all --no-merges Explanation: git shortlog: summarize git log output -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
Sources: https://git-scm.com/docs/git-shortlog https://git-scm.com/docs/git-log