With everyone using a distributed source control like git, employees have a copy of the code locally on their laptops. Why aren't code leaks more prevalent?
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.
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.