I\'m writing a small script and want to know how many commits I made on a current branch since it was created.
In this example I\'d have 2 commits made on chil
chil
Update: git rev-list now has --count:
--count
git rev-list --count master..
With older git versions:
git rev-list master.. |wc -l
rev-list lists revisions, and master.. refers to commits since current HEAD diverged from master.
master..
HEAD
master