LinuxCommandLibrary

git-count

TLDR

Count total commits

$ git count
copy
Count commits by author
$ git count --all
copy

SYNOPSIS

git count [options]

DESCRIPTION

git count shows the total number of commits in the repository. With the --all flag, it shows commit counts broken down by author.
The command provides a quick overview of repository activity and contributor participation. It's simpler than parsing git shortlog output.
git count offers quick commit statistics.

PARAMETERS

--all

Count commits per author.
--help
Display help information.

CAVEATS

Part of git-extras package. Counts commits on current branch. Merge commits included.

HISTORY

git count is part of git-extras, providing simple commit counting that complements git shortlog.

SEE ALSO

Copied to clipboard