I have multiple repos always with only master branch. Lets call them repoA/master, repoB/master, repoC/master. Now I would like create new repo newRepo that would have branches: repoA, repoB, repoC...
Then I would like to copy repoA/master to newRepo/repoA, repoB/master to newRepo/repoB, repoC/master to newRepo/repoC. Finally, I want to delete repoA,  repoB,  repoC. This way, I will have previously 3 separated repos in one.
Potentially submodule could do it? But what would happen if the origin repo would get deleted?
Thank you!
EDIT: Based on the comment section I should have specified that the goal is also to keep commit history for each repo.
