GNOME had to redirect git traffic to GitHub just to save on bandwidth. There's a jsDelivr for npm, but nothing for git. Until now.
# prefix any public repo URL with gitdelivr.net $ git clone https://gitdelivr.net/github.com/torvalds/linux # first clone: passes through to origin at full speed # every clone after: served from edge # works with any forge $ git clone https://gitdelivr.net/gitlab.gnome.org/GNOME/gtk $ git clone https://gitdelivr.net/codeberg.org/forgejo/forgejo
Same clone request = same packfile. SHA-256 the request, cache the response in R2. Forever.
Full speed to the client, zero buffering. A marker triggers cache fill on the next request.
Served from R2 or Cloudflare's edge. Origin is not touched until someone pushes.
Branch pointers are cached with a 60s TTL. Pushes are visible within a minute.
git fsck rejects the entire pack. We're a cache, not a trust boundary.Prefix any public git URL with this domain.
git clone https://gitdelivr.net/github.com/torvalds/linux