Reputation: 8592
I have one GIT repository in a folder called AA, and I have second GIT repository called BB.
I want to import the AA repository into the BB repository as a sub folder.
before:
AA
|- .git
|- A/
|- fileA
BB
|- .git
|- B/
|- fileB
after:
BB
|- .git # new .git with both AA and BB .git infos
|- B/
|- fileB
|- AA/ # <== no .git anymore
|- AA/A/
|- AA/fileA
How can I do that?
Upvotes: 7
Views: 4843
Reputation: 11290
If folder structure is different a git mv
would solve that:
git mv
all stuff into a new subdir AA
.Upvotes: 3