A GopherCon 2025 talk demonstrating how to build a minimal Git server in Go from scratch in under 7 minutes. The speaker walks through how `git clone` works internally, covering the `git-upload-pack` protocol, SSH server setup using the gliderlabs/ssh library, and the binary format of Git's pack and index files. Key implementation details include reading advertised references, parsing the .idx file structure, streaming pack file objects to the client, and a subtle bug fix involving zlib's ReadByte requirement that required replacing a TeeReader with a custom TeeByteReader. The final implementation is roughly 300 lines of Go code.

6m watch time