I have a project with two separate versions. Each version is on another branch and they will never be merged together. Most of the code is equal but each branch has it unique parts. Now I need to get almost every commit into both branches.
Currently I use cherry picking for this: I switch to the other branch and pick all commits I need.
I don't like how I am doing this. It takes some time to pick every commit and your I might miss one.
How can I keep two mostly equal branches in sync while not losing the unique changes?
I have read several post on similar topics but none of them seem to apply for my situation:
- How to synchronize two branches in the same Git repository?
- How to maintain long running git branches
- How to keep a git branch in sync with master
I have also read this nice git branch guide but also I could not see a fitting solution here. The hotfix branch comes closest and I thought about creating one but I think the merge will overwrite stuff.