CDN for Git

GNOME had to redirect git traffic to GitHub just to save on bandwidth. There's a jsDelivr for npm, but nothing for git. Why pay egress costs in 2026?

# prefix any public repo URL with gitdelivr.net
$ git clone https://gitdelivr.net/gitlab.gnome.org/GNOME/gtk
$ git clone https://gitdelivr.net/codeberg.org/forgejo/forgejo
# first clone: passes through to origin at full speed
# every clone after: served from edge
# Clone even faster than from GitHub. Try Linux Kernel itself:
$ git clone --depth=1 https://gitdelivr.net/github.com/torvalds/linux
<20msEdge TTFB
300+PoPs
Free!yes, free!

How it works

01
Git is content-addressable

Same clone request returns same packfile. Simply SHA-256 the request, cache the response in Cloudflare R2.

02
First clone passes through

Full speed to the client from Cloudflare Workers. Cache is filled on the next request.

03
Every clone after is cached

Served from Cloudflare edge closest to you. Origin is not touched until someone pushes.

04
Refs stay fresh

Branch pointers are cached with a 60s TTL. Pushes are visible within a minute.

Security

You don't have to trust us. Git itself verifies every object by hash on the client side. If we flip a byte, git fsck rejects the entire pack. We're doing this to help open source projects who don't want to (or can't) use GitHub or Gitlab.

Try it

Prefix any public git URL with this domain.