High Performance Git

Published: (April 27, 2026 at 08:32 PM EDT)
2 min read

Source: Hacker News

Pencil sketch of a sailboat moored near a dock with shoreline buildings in the distance.

Git looks like a version‑control tool. It is also a content‑addressed database, a filesystem cache, a graph walker, and a transfer protocol.

This book is about those layers and the performance costs of each one. It starts with objects, refs, the index, and history traversal, then moves outward into packfiles, maintenance, sparse working trees, partial clone, transport, repository scale, diagnosis, configuration, and recovery.

It is written for engineers who need Git to stay fast as repositories, histories, and teams get larger: build and CI engineers, monorepo owners, developer‑experience teams, and the people who wind up debugging strange Git behavior when the easy explanations stop working.

Section 0 · Introduction

Section I · Foundations

Why Git gets slow, what Git stores, and how refs and the index steer through it.

Section II · History and Rewrite

How Git walks history and how rewrite commands reshape it without mutating commits.

Section III · Storage and Local Scale

Object storage, index cost, maintenance, and the techniques that shrink local state.

Section IV · Large‑Repo Operations, Transport, and Scale

Clone shape, transfer policy, parallel work with worktrees, repository size, and ref scale.

Section V · Diagnosis and Recovery

How to instrument Git, find the slow layer, apply high‑leverage settings, and recover when the repository is actually wrong.

Back Matter

0 views
Back to Blog

Related posts

Read more »

Ted Nyman – High Performance Git

!Pencil sketch of a sailboat moored near a dock with shoreline buildings in the distance.https://gitperf.com/index-art.png Git looks like a version‑control tool...