HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git count — Print the total number of commits. Part of `git-extras`. More information: <https://github.com/tj/gi

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandgit countcliprintcommitstotalnumber

Problem

How to use the git count command: Print the total number of commits. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-count>.

Solution

git count — Print the total number of commits. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-count>.

Print the total number of commits:
git count


Print the number of commits per contributor and the total number of commits:
git count --all

Code Snippets

Print the total number of commits

git count

Print the number of commits per contributor and the total number of commits

git count --all

Context

tldr-pages: common/git count

Revisions (0)

No revisions yet.