how to find how many commits happened since commit in git code example Example: find total commits in git git rev-list --all --count