I want to organize my git repos since multiple of them are highly related. Now I want to combine (not merge) all of them into one single repo with multiple branches and delete the old repos. What shall I do?
For example, I have repo A, B and C with branches A.master, A.branch1, B.master, C.master, C.branch2. What I want is to create a new repo D whose branches are D.master(something new), A.master(has to change name), A.branch1, B.master(has to change name), C.master(has to change name), C.branch2 with all the commit histories from the original repos. And then delete the A, B and C, so that submodule cannot be used.