Resolving conflicts: how to accept “their” changes automatically?

前端 未结 2 1947
时光取名叫无心
时光取名叫无心 2021-01-29 21:44

When merging conflicting changes using hg merge, Mercurial inserts a set of markers into the files to be merged in my working copy like this:

<&l         


        
相关标签:
2条回答
  • 2021-01-29 22:31

    Try this:

    hg merge --tool 'internal:other'
    

    See also hg help merge-tools for more information.

    0 讨论(0)
  • 2021-01-29 22:40

    Use

    hg resolve -t internal:other --all
    

    to accept theirs and

    hg resolve -t internal:local --all
    

    to accept yours

    0 讨论(0)
提交回复
热议问题