git-count-objects
TLDR
Count objects
$ git count-objects
Verbose count$ git count-objects -v
Human readable sizes$ git count-objects -vH
SYNOPSIS
git count-objects [options]
DESCRIPTION
git count-objects reports the number of unpacked objects and their disk consumption. It helps understand repository size and identify when garbage collection might be beneficial.
The verbose mode shows packed objects, prunable objects, and size breakdowns. This information helps diagnose repository bloat and plan maintenance.
git count-objects provides repository storage diagnostics.
PARAMETERS
-v, --verbose
Show detailed breakdown.-H, --human-readable
Human-readable sizes.--help
Display help information.
CAVEATS
Core git command. Unpacked objects indicate recent activity. Large counts may indicate need for gc.
HISTORY
git count-objects is a core Git command for repository maintenance, helping administrators understand storage usage.


