TLDR Web Dev · ARTICLES & TUTORIALS
GOING DOWN THE RABBIT HOLE OF GIT'S NEW BUNDLE-URI
Summary from the TLDR Web Dev newsletter
Git's new `bundle-uri` feature is designed to speed up clones by using a pre-calculated seed file from a CDN, which is great for reducing server load on Git forges and internal Git servers. Initially, using a CDN-hosted bundle didn't improve clone times as expected. After investigation, it was discovered that Git only copies local branch references from the bundle, causing it to re-download many objects. A small code change to copy all references (including tags and remote references) improved clone times.