git-sizer

GitHub·GitHub.git-sizer

Compute various size metrics for a Git repository, flagging those that might cause problems

git-sizer computes various size metrics for a local Git repository, flagging those that might cause you problems or inconvenience.

winget install --id GitHub.git-sizer --exact --source winget

Latest 1.6.0·November 13, 2026

Release Notes

The emphasis of this release is supporting SHA-256 Git repositories, allowing arbitrary reachability roots on the command line, and rebuilding release binaries statically with Go 1.27.3. What's new:

  • Add support for Git repositories using the sha256 object format.
  • Allow arbitrary reachability roots (git-sizer [OPTS] [ROOT...]) to be specified on the command line (any revision git rev-parse resolves, such as main, main~:src, or an object ID). When ROOT arguments are given without reference selection options, only objects reachable from those roots are traversed.
  • Improve bare vs. worktree repository detection so git-sizer works when safe.bareRepository=explicit is set.
  • Avoid git config flags that require Git 2.18+ (--default, --type=bool, --type=int) for compatibility with older Git installations.

Internal changes:

  • Replace the internal pipe package with github.com/github/go-pipe.
  • Update source installation docs to use go install instead of go get.
  • Automate draft release creation via GitHub Actions and pin workflow actions to commit SHAs.
  • Disable cgo (CGO_ENABLED=0) when building release archives so Linux binaries are statically linked.
  • Build with the Go 1.27.3 toolchain.

Installer type: zip

x86—B6F487496E2A955C24F3798F60FDC2FEE9C1F3C60E50DF1328B1769C5BE3C023
x64—F730701270EF9A16CC9F3BD27074F80E517D10E88F50493F643ABAD8415352C0

Details

Homepage
https://github.com/github/git-sizer
License
MIT
Publisher
GitHub
Support
https://support.github.com/
Copyright
Copyright (c) GitHub
Moniker
git-sizer

Tags

gitgithubgolang

Older versions (1)

1.5.0
x86—55930026EB444F8F852E03716525067BFC4A0329A9C778B026DA150A8ED8ABD8
x64—52093C1CBA0BB8E00DA14C9EEF678EB052FC729C32419415817076F06B5C85D8