GitHub at the CenterWide moat

Microsoft (MSFT) — moat facet

GitHub's lock-in isn't the code — that's a commodity — it's the reputations, communities, and collaboration built around it.

The acquisition of GitHub was a quiet masterstroke.1 GitHub is where a very large share of the world's software actually lives — where the code is stored, shared, reviewed, and collaborated upon — and owning it placed Microsoft at the literal center of the software-creation process, watching and serving the work as it happens. It is difficult to overstate how strategically valuable it is to sit at that crossroads, trusted rather than resented, by the people who build the thing everyone else depends on.

Repositories hosted on GitHub (millions)630MTotal, end 2025121MCreated in 20254.3MAI-relatedGitHub Octoverse 2025
Any one repository is perfectly portable. What holds the centre is that the other 629,999,999 are here, along with the issues, the reviews and the audience.

What makes GitHub sticky is not the code storage — that is a commodity — but the network of collaboration around it. A developer's reputation, their contribution history, their open-source projects, the communities they belong to, and the connections to other developers all live on GitHub, and that social graph of software is far harder to replicate than a code repository. GitHub is the professional home of the world's programmers.

Owning that center feeds everything else Microsoft sells to developers. From GitHub, the natural path leads to Microsoft's cloud for deployment, its editor for writing, and its AI for assistance — each a short step from where the developer already is. The company that sits at the center of creation gets the first and easiest shot at selling everything that creation needs.

For the owner, GitHub is the strategic high ground of the entire developer franchise: not the most profitable piece in itself, but the position from which all the profitable pieces are most easily reached. Microsoft bought not a business so much as a place to stand — the center of where software gets made.

Moat trajectory: Widening

Widening. GitHub is where the world's code and developers already live — over a hundred million of them — and owning that hub gives Microsoft a relationship with software builders that no rival can easily reach. Copilot is woven directly into the place developers already work, turning a social network for code into an AI distribution channel. Every project hosted and every developer who defaults to GitHub widens Microsoft's reach into the next generation of software and, eventually, toward Azure. The center of gravity keeps pulling.

The number that tests this moat
Third-party estimate
Repositories hosted on GitHub
630M, after 121M created in 2025

The code itself, rather than the people who write it. Git makes any one repository perfectly portable, so what holds the centre is that the other 629,999,999 are here too — the issues, the pull requests, the actions and the audience. Watch new repositories a year: that is the rate at which the default is being re-chosen.

Source: GitHub Octoverse 2025 ↗
⚠ Threats to the moat
References
  1. ReportedThe GitHub acquisition: $7.5B in stock, closed October 2018.
    Microsoft — GitHub acquisition ($7.5B in stock, closed Oct 2018) — Closed Oct 2018 · publ. 2018 · source ↗
Sources
Generated September 22, 2026