Before you act
- Confirm that the scope matches your case.
- Keep recommendations, enforced limits, exceptions, and unstated details distinct.
- Open the official source before relying on the rule for a consequential decision.
Source-backed platform rule
See the direct answer, scope, qualifiers, and current official evidence for GitHub repository branch count limit.
RuleRoster is independent and is not affiliated with or endorsed by GitHub.
Direct answer
GitHub recommends no more than 5,000 branches per repository.
Published evidence
Recommended maximum: 5,000 branches per repository. Large branch counts can add unnecessary data to fetch operations and slow transfers. In extreme cases, performance may be throttled; throttling is neither certain nor stated as a hard branch-count ceiling.
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
GitHub · verified September 23, 2026
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
If the source or summary appears wrong, submit precise evidence for human review.