how to view total commits in a git repo code example Example: find total commits in git git rev-list --all --count