Skip to content

Source-backed platform rule

GitHub repository on disk size limit

See the direct answer, scope, qualifiers, and current official evidence for GitHub repository on disk size limit.

RuleRoster is independent and is not affiliated with or endorsed by GitHub.

Direct answer

What is the rule?

GitHub recommends keeping a repository's compressed .git folder at or below 10 GB.

Scope
GitHub.com repository structure and size
Rule verified
September 23, 2026

Published evidence

Rule details

Recommended limit

Recommended maximum: 10 GB for the compressed .git folder per repository. Larger repositories may slow fetch operations and increase clone times; those effects are not guaranteed enforcement. Suggested mitigations: use Git LFS for binary files and store generated files outside Git.

Applicability

Service: GitHub.com. Plans: Enterprise Cloud, Free, Pro, Team. Country: not stated. Device: not stated. Account class: not stated. Policy version: not stated.

Evidence trail

Official sources

Attribution and license

Source content: GitHub Docs by GitHub, licensed under CC BY 4.0: https://github.com/github/docs/blob/0a4d351cc1ff7134764f874808fb6829afbb73dd/LICENSE. Summarized and adapted by RuleRoster; verified 2026-09-23. No endorsement by GitHub is implied.

Interpretation and accountability

Before you act

  1. Confirm that the scope matches your case.
  2. Keep recommendations, enforced limits, exceptions, and unstated details distinct.
  3. Open the official source before relying on the rule for a consequential decision.

Record dates

Published
September 23, 2026
Rule verified
September 23, 2026
Review due
September 30, 2026

Challenge this record

If the source or summary appears wrong, submit precise evidence for human review.

Submit a correction