how to count the total number of commits in git code example Example: find total commits in git git rev-list --all --count