I have two repos in the same parent folder that I want to combine in the parent folder, and if possible keep history without minimal diffs.
parent/
--code1/.git
--code2/.git
I would like:
parent/.git
--code1
--code2
Is it possible to do this and keep the history for both? Or at least code1 folder? Unfortunately there are some same-named branches in both repos. What would be ideal is to have both histories in .git by commit date, but I haven't found an easy solution (one complication is that git mv shows diffs from before/after commits with all files changed, but we can live with that).