For some businesses, it could be that the code is not most important, but the data.
Or maybe it's because legal ramifications deter developers to share private corporate code?
Or because a code base is continuously evolving, so it'll soon be outdated?
I've been looking at the historical accounts of adoption of Git, and one objection I don't see is that employees will have a copy of the code, and that might be a source of leaks for company secrets.
If you remember that era of git adoption (2008-2011 ish?) and you got a anecdote or theory, I'd love to hear it.
2. There isn’t a ton of incentive to leak it. Companies have deep legal pockets making the downsides large.
3. Code alone is rarely the differentiating factor between two companies.
4. Open sources means that parts that are generic are already shared.
People steal code to write exploits, not to create rival companies.
If you're trying to ratfuck someomeone, you're quiet about it until they're dead or in prison if you're doing it properly, and if it's for money, then you take your winnings and silently retreat, not throw what you stole onto github like you're gunning to be the next Paul Le Roux.
(There are chaotic good hackers with dark sides too -- it pains my heart I used to respect Julien, for I too enjoy crushing bastards. I wish him the best, but he refused to harm the ones harming America in ways that went from arguably rightful wanking against nuclear killers to... pure sadism and an ever present need for narcissistic supply in line with the types he claims to abhor.)
One theory I've hard as to why cloud development environments are becoming more popular is that it's easier to monitor nefarious activity in a cloud environment versus a work-issued computer. For example, flagging large downloads of entire repos to one's local network. These environments reduce the attack surface vector and make it easier to set up monitoring for the remaining surface.