I am trying to create a monorepo from multiple existing repos. I have created a project with its own .git, README.md, ... and a /packages folder, where I want to place the merged repos as subfolders. But after I do this
cd packages
git remote add existing-1 git@...
git fetch --all
git merge existing-1/master --allow-unrelated-histories
I get merge conflicts (README.md etc), because git wants to merge the repo into root, not /packages. What can I do?