Re:Advantages of Monorepos (2015)
by rubyist5eva on Thursday April 07, 2022 @12:03PM
(#30946371)
With Git I’m pretty sure you can literally just add a new remote to a completely unrelated repo, fetch it and then “merge” any branch from the other two into the new mono repo (ie. git checkout master; git merge other-remote/master). If all your projects are otherwise in a top level directory inside the monorepo this should merge cleanly and then can just live beside eachother in the checkout.
[ Parent
| on HN ]
Re:Advantages of Monorepos (2015)
by WorldMaker on Thursday April 07, 2022 @02:08PM
(#30948213)
You just need the `--allow-unrelated-histories` flag (the first merge) which git requires as a small sanity check.