LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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 --critical
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)
--critical
Only report critical statistics (equivalent to --threshold=30)
--names mode
Display names of large objects (none, hash, or full)
--no-progress
Suppress progress output
--show-refs
List the references being processed
--version
Display version information

INSTALL

sudo apt install git-sizer
copy
sudo pacman -S git-sizer
copy
sudo apk add git-sizer
copy
brew install git-sizer
copy
nix profile install nixpkgs#git-sizer
copy

SEE ALSO

Copied to clipboard
Kai