Skip to content

Host a large Git repository with no size limit

Upstream has no repository size limit on any plan, takes files up to 1 GB in Git history and pushes up to 5 GB, and stores Git LFS objects up to 5 GiB each.

Upstream has no limit on repository size, on every plan including Free. A file in Git history can be up to 1 GB, one push can be up to 5 GB, and Git LFS objects can be up to 5 GiB each.

Limits next to other hosts

UpstreamGitHubGitLab.comBitbucket Cloud
Repository sizeNo limitUnder 10 GB recommended10 GiB on Free, 500 GiB on paid plansPushes stop at 4 GB
One file in Git history1 GBBlocked over 100 MiB
One push5 GB2 GB5 GiB

Sources: GitHub's repository limits and large files, GitLab.com limits, Atlassian's repository size limits.

Push a history bigger than 5 GB

Push it in parts, older commits first. Each push sends only what the last one didn't:

git remote add upstream https://upstream.codes/{namespace}/{repository}.git
git push upstream v1.0^{commit}:refs/heads/main
git push upstream v2.0^{commit}:refs/heads/main
git push upstream --all
git push upstream --tags

Moving from GitHub? Import the repository instead: Upstream copies the full history on its side.

Git LFS

Keep files up to 1 GB in plain Git, or track binaries, models and media with Git LFS, up to 5 GiB an object:

git lfs track "*.bin"
git add .gitattributes model.bin
git commit -m "Track model weights with LFS"
git push upstream main
PlanLFS storage
Free1 GiB
Pro10 GiB
Team100 GiB, pooled
Enterprise1,000 GiB, pooled

Speed on big repositories

Every repository runs on Upstream Rapid. With Chromium's full history imported (55 GB, 28 million objects), 6,144 agents pushed 7,906 times a second. A shallow clone of Chromium took 46 seconds on Upstream and 107 on GitHub, back to back on the same machine. Big clones stream at up to 96 MB/s, and clones and fetches have no size limit.

Unclaimed repositories, pushed without an account, stop at 100 MiB until someone claims them.