Git Git statistics Total number of commits in a branch


Example

git log  --pretty=oneline |wc -l