Total number of commits in a branch
suggest changeThis counts every commit reachable from HEAD, including history shared with other branches:
git log --pretty=oneline | wc -l
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents