LinuxCommandLibrary

git-sizer

Compute and report repository size metrics

TLDR

Analyze repository size
$ git-sizer
copy
Verbose output showing all statistics
$ git-sizer -v
copy
JSON output for machine processing
$ git-sizer --json
copy
Show only critical statistics
$ git-sizer --threshold=[30]
copy

SYNOPSIS

git-sizer [options]

DESCRIPTION

git-sizer computes various size metrics for a Git repository, identifying potential performance problems such as oversized files, deep histories, or wide directory trees.
The tool reports metrics with concern levels shown as asterisks (*), helping maintainers understand whether their repository structure may cause issues with cloning, fetching, or general Git operations. It must be run from within a Git repository.

PARAMETERS

-v, --verbose

Report all statistics, equivalent to --threshold=0
--json
JSON output format
--json-version n
JSON format version (1 or 2)
--threshold n
Minimum concern level to report (0=all, 1=default, 30=critical only)
--no-progress
Suppress progress output

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard