How do I get the Git commit count?
To get a commit count for a revision (HEAD, master, a commit hash): git rev-list –count <revision> To get the commit count across all branches: git rev-list –all –count I recommend against using this for build identifier, but if you must, it’s probably best to use the count for the branch you’re building against. That … Read more