0

enter image description here

this images describes the issue we were facing

branch k had merged b2 into itself, which was a mistake, we actually did not want any b2 related changes going into k.

then k merged itself into b1, which brought in the b2 changes as well, which we do not want in b1

then k realized the mistake and does a revert commit and then merge itself into b1 again

then when we try to merge b1 to b2, we will face lots of conflicts due to the revert commit

In this case, what is the best way to avoid these conflicts?

What we did was recreated b1 and redid k's changes onto it, just wondering are there better ways to avoid such conflicts?

Cui Pengfei 崔鹏飞
  • 8,017
  • 6
  • 46
  • 87

0 Answers0