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

前端 未结 6 810
误落风尘
误落风尘 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 10:47

    I had this exact issue. A coworker accidentally merged my branch into the default branch while it was still incomplete. Initially I just backed out that merge which seemed to work fine until I wanted to merge my branch into default for keeps. Files that I needed were being marked for deletion upon merging.

    The solution was to go all the way back to my original back out that fixed my coworker's mistake and back out that back out. This stopped the files from being marked as deleted and let me successfully merge my branch into default.

提交回复
热议问题