how to check number of total commits git code example
Example 1: find total commits in git
git rev-list --all --count
Example 2: how to count the commits by user in git
git shortlog -sn --all | git log --author="authorname" --format=tformat --numstat