In 2005, the Linux kernel community lost access to the version-control tool that had helped it manage a rapidly growing stream of changes. Linus Torvalds did not respond by choosing the least-bad replacement. He stopped kernel work long enough to build a new tool.
That tool became Git. The popular version of the story says Torvalds wrote it in about ten days. The more useful part is why he did it at all: the failure of a dependency forced him to define what a source-control system for a huge distributed project actually needed.
Git was not created because Torvalds had always dreamed of designing version control. In later interviews he said almost the opposite. He disliked the category and had been satisfied to let other tools solve it—until the available options no longer matched the kernel’s scale, workflow and trust requirements.
The problem before Git
For much of the Linux kernel’s early life, contributors exchanged patches and archives. That worked when the project was smaller, but the volume and geographic spread of development kept increasing. In 2002 the kernel project began using BitKeeper, a proprietary distributed version-control system.
BitKeeper gave maintainers something important: each developer could work with a local repository, and changes could be merged across distributed copies instead of flowing through one central gate. Torvalds later credited this model with changing how he thought about source control.
But the arrangement was uncomfortable from the start for part of an open-source community. BitKeeper was not itself open source. Its no-cost use for kernel development depended on terms set by a commercial vendor. That tension became critical in 2005 after a dispute involving Andrew Tridgell’s effort to understand the BitKeeper protocol. The free-use arrangement ended, and the kernel team needed another system.
Torvalds turned the constraint into a specification
Instead of beginning with features that existing tools already offered, Torvalds started from the kernel’s actual pain. The replacement had to be fast. It had to support thousands of parallel lines of work. It had to be fully distributed. It had to preserve data integrity. And it had to cope with a project as large and active as Linux without making maintainers wait on the tool.
Those constraints explain several Git choices that can feel unusual to newcomers. Git treats snapshots and object identity as central concepts. Local operations are cheap because every clone contains a repository. Branches are lightweight because non-linear development was not an edge case; it was normal kernel work.
The important move was not “invent a clever command set.” It was “describe the workload honestly, then make the system fit the workload.”
What he actually built
The first Git was deliberately small and rough. Torvalds focused on the underlying mechanics needed to record content, track history and exchange changes safely and quickly. The familiar porcelain commands and smoother user experience developed later, with Junio Hamano becoming Git’s long-term maintainer.
That distinction matters. Mature Git is the result of a community, not a ten-day solo product launch. Torvalds created the initial architecture under time pressure; other contributors then turned the architecture into a durable tool used far beyond the kernel.
Git’s distributed model also changed the politics of contribution. A developer did not need permission to create a repository, experiment with branches or preserve a line of work. Authority could still matter when deciding what entered an official project, but the tool itself did not force all experimentation through one central server.
Four lessons hidden inside the Git origin story
First, dependencies are design risks. A tool can work brilliantly and still become a strategic weakness if access depends on terms your project cannot control.
Second, scale changes what “good enough” means. A source-control system acceptable for a small team may be unusable for a project processing enormous numbers of patches from contributors around the world.
Third, constraints can clarify architecture. Speed, distribution and integrity were not optional polish. They were the requirements around which the first design was organized.
Fourth, a rough foundation can be better than a polished mismatch. Early Git was not friendly, but it solved the hardest structural problems. Usability could improve afterward.
The part worth remembering
The story is sometimes told as proof that one brilliant programmer can build anything in a few days. That is too simple. Git emerged from years of kernel-development experience, lessons learned from BitKeeper, a specific crisis, and later work by a large community.
The more durable lesson is about tool design under pressure. When a critical dependency disappeared, Torvalds did not ask which existing system looked most familiar. He asked what the work demanded.
That question is still useful whenever a team replaces infrastructure: are you choosing the tool that resembles what you had, or the one that matches how the work actually happens?
Sources
- Git SCM — A Short History of Git
- Linux Foundation — Interview with Linus Torvalds on Git
- Linux Foundation — Linus Torvalds profile
- Git SCM — User Manual
- Linux Foundation — Linux Kernel History Report
- Photo: Césavr, CC BY-SA 4.0

Leave a Reply