# github/git-sizer

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

Repository: https://github.com/github/git-sizer
Canonical: https://ross.abutalabs.com/products/git-sizer
Language: Go
License: MIT
License Family: permissive
Topics: git, github, golang
Last push: 2026-01-16T14:50:04+00:00

## Health v2 (maintenance only)
Score: 51/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 62, release rhythm 8, longevity 100
- inputs: {"age_days": 3139, "days_push": 229, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4071, forks 201 (observed 2026-08-28T04:08:34.218120+00:00)

## What it is
git-sizer is a Go CLI tool that computes size metrics for a local Git repository and flags issues like oversized blobs, too many references, or excessive object counts. It helps maintainers keep repositories healthy and fast to clone and repack.

## Use cases
- analyze git repository size before it becomes unwieldy
- find large blobs slowing down clones
- detect too many branches and tags in a repo
- audit repository health for performance problems
- decide whether to move large files to Git LFS
- check repo size limits before open-sourcing

## When to choose
- your repository is slow to clone, fetch, or repack
- you want to diagnose why a Git repo is too large
- you're preparing a repo migration or cleanup and need metrics

## When to avoid
- you need to shrink or rewrite history - use git-filter-repo or BFG instead
- you want continuous repository analytics dashboards rather than a one-off CLI check

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, version-control, analytics, cli
- domain: developer-tools, version-control
- platform: windows, cli, go
- tags: git, repository-analysis, repository-health, code-metrics, command-line, linux, macos

## Member repositories
- github/git-sizer (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:34.218120+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:30.187209+00:00, confidence not recorded.
  - readme: https://github.com/github/git-sizer (fetched 2026-08-28T04:08:34.218120+00:00, sha d23524b9add0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
