Code and repositories / Repository settings
When a repository nears its size limit
A notice about the size of your repository shows under its header, or a push printed a line about the size. Find the section below with the title of your notice: it says what stops, what still works and what to do.
3 min read
Each repository has a size limit, and at the limit Source refuses pushes that add data. Only people with write access see these notices. They show on each page of the repository.
This repository is near its size limit
From 80 percent of the limit, the notice This repository is near its size limit says, for example: "It uses 16.2 GB of its 20.0 GB limit. At the limit, TanStack Source refuses pushes that add data."
Each push prints the same numbers:
remote: This repository uses 16.2 GiB of its 20 GiB limit. At the limit, TanStack Source refuses pushes that add data.
Pushes still work. Before the repository reaches the limit:
- Ask a site admin for a higher limit.
- Keep new large files in Git LFS. LFS files do not count toward the size.
This repository is at its size limit
The repository reached its size limit. The notice This repository is at its size limit says, for example: "It uses 5.1 GB, and its limit is 5.0 GB. TanStack Source refuses pushes that add data. Ask a site admin to raise the limit."
Source refuses:
- Each push that creates or moves a branch or a tag.
- An import into the repository.
- Branches and tags that come down from GitHub, on a repository that syncs with GitHub.
A refused push shows the reason:
! [remote rejected] main -> main (This repository is at its size limit: it uses 5.1 GiB, and its limit is 5 GiB. Ask a site admin to raise the limit.)
An import stops with the same reason. On a synced repository, the GitHub sync section shows it in a warning that starts with "Branches and tags do not come down from GitHub now." See Sync with GitHub.
These still work:
- Reads and clones.
- A push that only deletes branches or tags.
- Merges and edits on the web.
- Issues, pull requests and comments.
To push again, ask a site admin to raise the size limit of the repository.
Note
A deleted branch or tag does not make the repository smaller, because Source keeps its git data.
Done
You know how close your repository is to its limit, what stops at each notice, and what to ask a site admin. A site admin changes the limit as Give one repository its own size limit shows.
How Source counts the size
The size of a repository is its git data on the git servers of Source, which keep the git of every repository. The git servers measure it at each push, and each time that branches or tags move there, also when GitHub sync moves them. The notice shows the size that they measured last.
Git LFS files and assets do not count. Neither do the issues, pull requests and comments, which Source keeps in its database.
The size limit of the repository counts this size. A site admin sets it, and it is 20 GB by default. At the limit, Source refuses the pushes that add data, and branches and tags do not come down from GitHub.