I have two branches, ServerA
and ServerB
. The code in both is nearly the same, but not identical. ServerB
branched off of ServerA
in the past. I want to create a new dev
branch with code changes that will be merged into both of the server branches.
I could create dev
by branching ServerA
, but I don't want ServerA's differences to go to ServerB
or vice versa.
Or I could create a separate devA
and devB
branches, but then changes common to both would have to be done twice, once in each dev branch.
Is there a way to create a single dev
branch that I can merge into both server branches, that also allows me to continue to make server specific changes on each of the server branches?
I have tried merging, maybe an orphan branch or rebasing the new branch?