Why Google Stores Billions of Lines of Code in a Single Repository
Please dont do it unless you are google and have built google scale tooling (gforce/big table for code cache)<p>benefits of monorepo<p>* change code once, and everyone gets it at once<p>* all third party dependencies get upgrade at once for the whole company<p>cons (if you are not google)<p>* git checkout takes several minutes X number of devs in the company<p>* git pull takes several minutes X number of dev<p>* people running get fetch as a cron job, screwing up and getting into weird state<p>* even after stringent code reviews, bad code gets checked in and break multiple projects not just your team's project.<p>* your IDE (IntelliJ in my case) stops working because your project has million of files. Require creative tweaks to only include modules you are working on<p>* GUI based git tools like Tower/Git Source dont work as they cant handle such  a large git repo<p>Google has solved all the issues i mentioned above so they are clearly an exception to this but for rest of the companies that like to ape google, stay away from monorepo