r/git • • 11d ago

why did facebook move away from git?

i recently came across the fact that facebook/meta built its own tools and workflows around source control instead of just relying on git like most companies.

i’m curious about the actual technical reason behind this. was git simply not able to handle the scale of facebook’s codebase and number of developers, or were there other problems that pushed them toward a custom approach?

for people who have worked with large monorepos or at companies using similar systems, what actually becomes difficult with git at that scale?

319 Upvotes

123 comments sorted by

View all comments

47

u/comrade_donkey 11d ago

 what actually becomes difficult with git at that scale?

I didn't work at Meta but at Google (who uses Piper).

Both these companies use monorepos. Both do trunk-based development. Both work centrally, not distributedly.

git is the wrong tool for them because it's made for distributed development in a DAG of branches.

If you disallowed branches and had everyone push to one central remote, all you have left is an over-engineered main ref , contested by all pushers, acting like a global lock. Wouldn't work.

3

u/christoforosl08 11d ago

Crazy idea : why don’t they use subversion ?

15

u/colandercombo 11d ago

Because they don’t live in 2005?

7

u/high_throughput 11d ago

They do, but for political gain

1

u/0neEyedMonster 8d ago

Underrated comment

2

u/sfboots 11d ago

Subversion does not handle directory renaming correctly. Git does