I have a git repo that looks like this:
/C''-D''-F (featureB)
A-B-C---D---E (main)
\C'--D'--G (featureA)
I would like to move the common commits C
and D
earlier in the main
branch
history so that the repo looks like this:
/F (featureB)
A-B-C-D-E (main)
\G (featureA)
It is important to note that the C
/C'
/C''
and D
/D'
/D''
commits modify the code identically, but due to being in different branches, they all have different commit hashes.