How Linus Torvalds Built Git in Two Weeks — and Why It Conquered Software Development
March 28, 2026 · 4 min read
The Fact
Git, the most widely used version control system, was created by Linus Torvalds in 2005 to manage Linux kernel development.
Version control is one of those infrastructure technologies invisible to everyone outside software development but absolutely fundamental to how the modern world's software gets built. The basic idea is simple: when many people work on the same codebase, you need a system that tracks every change, records who made it and when, allows experimentation without breaking the main code, and enables merging of work from many contributors. Before Git, this was done with systems like CVS and Subversion that worked reasonably well for smaller teams but struggled at the scale of the Linux kernel project, which involved thousands of contributors worldwide.
The Trigger: A License Dispute
The Linux kernel had been using a commercial distributed version control system called BitKeeper, which was provided free of charge to the open-source community under certain conditions. In 2005, a dispute arose between the BitKeeper vendor and the open-source community over reverse-engineering attempts. BitKeeper withdrew free access, and the Linux development community — handling thousands of patches per month from developers worldwide — suddenly needed a new solution.
Torvalds surveyed the available alternatives and found none of them acceptable for the kernel's specific requirements: the ability to support extremely distributed development, fast branch and merge operations, strong guarantees of data integrity, and performance at large scale. Rather than compromise on these requirements, he decided to write something new.
He announced his intentions in April 2005 with characteristic bluntness: he needed the system to be fast, distributed, and protect against data corruption, either accidental or malicious. He had the initial design working within days. Git — the name was Torvalds's self-deprecating humor, British slang for an obnoxious person — was operational within two weeks. Torvalds handed off maintenance to Junio Hamano in June 2005, and Hamano has served as the primary maintainer since then.
What Made Git Different
The key design principle that distinguished Git from its predecessors was genuine distributed operation. Systems like SVN used a central server: all version history lived on one machine, and developers checked out copies to work on. Git gave every developer a complete copy of the entire repository, including the full history of every change ever made. Work could be done entirely offline, branches could be created and merged locally, and no central server was required for the fundamental workflow.
This design had profound consequences for how collaborative software development worked. Because branching was fast and cheap in Git — creating a branch takes milliseconds regardless of repository size — developers could create experimental branches freely, work on features in isolation, and merge them when ready. The "feature branch" workflow became standard practice, transforming how teams organized their work.
Git's data model was also novel: rather than storing differences between files (as many earlier systems did), Git stored snapshots of the entire repository at each commit, using a content-addressable object store where each piece of data is identified by the cryptographic hash (SHA-1, later SHA-256) of its contents. This design made it impossible to change historical data without being detected and gave Git extraordinary data integrity guarantees.
GitHub and the Social Coding Revolution
Git itself was a command-line tool with a steep learning curve. GitHub, founded in 2008, built a web interface on top of Git that made repository hosting, code review, and collaboration far more accessible. The combination of Git's technical model with GitHub's social interface created a new paradigm for open-source software development. Forking a project, making changes, and proposing them back as a "pull request" became the standard workflow for contributing to any open-source project.
GitHub grew to host over 100 million repositories by the 2020s, essentially becoming the world's largest source code archive and the central hub of open-source software development. Microsoft acquired it in 2018 for $7.5 billion, an acknowledgment of its centrality to the software development ecosystem.
As of 2026, Git is used in essentially all professional software development contexts. The problem Torvalds set out to solve in April 2005 — how to manage a large, widely distributed software project — turned out to be everyone's problem, and his two-week solution has endured as the universal answer.
FactOTD Editorial Team
Published March 28, 2026 · 4 min read
The FactOTD editorial team researches and verifies every fact before publication. Our mission is to make learning effortless and accurate. Learn about our process →