I have two "branches", both of which started from the same code base, but both of which were imported to git after they diverged. The prior history is lost, and additionally both branches have extensive changes recorded in their git history.
What is a good strategy to approach merging features and bugfixes between these two branches in a manageable way?
Is there a tool that will assist me in separating differences in the original imports into meaningful commits?
Sounds like you want to keep the history. I would use rebase --onto
with --preserve-merges
to move features/bugs to the branch you want to continue using. If they sit in a different structure for some reason, make a new branch then do a filter-branch
with the tree operation to make the structure the same. Then rebase --onto --preserve-merges
as you would in the first scenario.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With