git-count-commits

Count the number of commits on a branch.

#!/usr/bin/env sh
# Usage: git-count-commits [branch]
branch="${1:-master}"
git rev-list --count "$branch"
download git-count-commits