Turning Dry Code Repositories into the Social Network for 100M Developers: How Pull Requests and Green Squares Sold GitHub for $7.5B

In the fall of 2007, at a noisy sports bar in San Francisco, Ruby developers Chris Wanstrath and Tom Preston-Werner were complaining over beers about how painful it still was to share code.
Linus Torvalds had created Git two years earlier—blazingly fast compared to Subversion—but collaborating through raw CLI patches and mailing lists felt stuck in the 1980s. The two sketched a dead-simple idea: wrap Git in a social network.
Launched in April 2008 with zero venture funding, GitHub went on to be acquired by Microsoft for $7.5 billion ten years later and now hosts over 100 million developers and nearly every major open-source and AI project on earth.
Git was the engine; GitHub’s invention of Social Coding was what transformed global software engineering.
1. Two Breakthrough Primitives: Pull Requests and Green Squares
Before GitHub, open-source hosting looked like SourceForge—ad-cluttered download directories where contributing a two-line bug fix meant emailing maintainers and waiting weeks for commit rights.
GitHub replaced gatekeeping with two iconic UX inventions:
- Fork + Pull Request (PR): Anyone could click Fork to clone a repository instantly, fix a bug, and open a Pull Request—a crisp red-and-green line-by-line diff where maintainers and strangers could comment inline and merge with one green button.
- The Contribution Graph (“Green Squares”) & Stars: In 2013, GitHub added a 52-week grid of green squares to every profile. Overnight, daily commits turned into a visible reputation ledger. Tech recruiters stopped trusting PDF resumes and simply asked for a GitHub profile link.

| Dimension | Pre-2008 Hosting (SourceForge / Lists) | GitHub Social Coding | Industry Shift |
|---|---|---|---|
| Contribution Friction | Request commit access via email | 1-click Fork + Pull Request | Unlocked global stranger collaboration |
| Code Review UX | Plain-text email patches | Inline red/green diff threads | Became software’s default workflow |
| Developer Incentives | Invisible, uncredited labor | Green squares + public Stars | Turned open source into career capital |
| Business Model | Ad-heavy download portals | Free public repos, paid private/enterprise | Pioneered bottom-up DevTools SaaS |
2. Bottom-Up SaaS Before It Had a Name
Bootstrapped for its first four years, GitHub pioneered the playbook later copied by Figma, Notion, and Linear: keep public open-source hosting 100% free and ad-free so developers build muscle memory on GitHub at night, then charge their employers for private repositories and enterprise compliance during the day.

3. From Microsoft’s $7.5B Bet to the AI Era’s Bedrock
When Microsoft acquired GitHub for $7.5 billion in 2018, skeptics feared the worst. Instead, Microsoft made personal private repos free, shipped GitHub Actions, and used the platform’s gravity to launch GitHub Copilot—the first breakout AI coding assistant. Even as AI models compete furiously, every line of generated code still converges on GitHub for CI testing, security checks, and Pull Request review.
4. Three Timeless Product Rules from GitHub
- Add low-friction collaboration and public status to a hardcore utility to turn a standalone tool into an unbreakable network.
- Win individual builders for free, then monetize their organizations through bottom-up adoption.
- Standardize a messy human workflow into four clicks (
Fork → PR → Review → Merge) so the entire industry builds muscle memory around your product.
Discussion