- Show the first commit:
git log --reverse --max-count=1
- Non-merge commits to
master
:git rev-list --no-merges master --count
- Number of non-merge commits in
master
per author:git shortlog -s -n --no-merges master
- Merges to
master
:git rev-list --merges --first-parent master --count
If you want to see the commits in question, you can replace --count
with something like --pretty=oneline
.