How can I back out a merge in Mercurial and later remerge with that branch?

前端 未结 6 808
误落风尘
误落风尘 2021-01-30 10:33

I have two branches, default and branch1. By mistake one person in our team merged branch1 with default. The content in branch1 is not yet ready to merge with default (it contai

6条回答
  •  爱一瞬间的悲伤
    2021-01-30 11:13

    You cannot really backout a merge nicely. IMO, the best way to handle this would be just to abandon the merge and continue the strand of changesets from before the merge, leaving a dangling head (which can be stripped). If other changes have happened since the merge, they can be rebased onto the new "good" head.

提交回复
热议问题