Git protocols: still tinkering after all these years?
summary
Explains Git protocol v2, how compatibility works across HTTP (extra header), SSH (env var) and the anonymous git transport (a double-null trick in the service packet), and the new command model where the server advertises capabilities and the client issues LS-refs with ref-prefix to ask for specific branches only. Demonstrates with Chromium (≈1,000,000 refs) where a no-op fetch drops from 10s→2.3s (4×) by avoiding a full ref advertisement, and sketches future features like resumable clones and CDN offload.
AI-written summary · about
