my original git repo M
had two sub-directories (A
and B
) which i've split off into separate git sub-modules a while back; repo M
maintained its same directory structure, of course.... the original thinking was that A
and B
were relatively independent of each other....
after working this way for while, i'm realizing that A
and B
are much more coupled that i thought.... to that end, i want to now absorb sub-modules A
and B
back into M
-- where they will once again become true sub-directories of the same name....
fortunately, i only have one working branch in A
and B
; and i only have about two months of commit history i'd like to preserve....
for sure, i could simply copy the latest contents of A
and B
back to their original sub-directories in M
; and the changes would appear to like one big "squashed" commit....
my question, then, is how can perform this operation AND preserve the history currently sitting in sub-modules A
and B
????