Visual Studio TFVC Merge Lines Misaligned

后端 未结 1 1758
执念已碎
执念已碎 2020-12-22 12:04

I am using Visual Studio 2017 with Team Foundation Version Control (TFVC). I am trying to merge changes from a parent branch into a child, but I am getting tons of conflict

1条回答
  •  粉色の甜心
    2020-12-22 12:35

    You can try the external Compare amd Merge Tools, e.g WinMerge, ExamDiffPro or Beyond Compare.

    For example:

    Using Beyond Compare as an External Merge Tool:

    Go to Tools | Options | Source Control | Visual Studio Team Foundation Server, then click Configure User Tools and then Add. Enter the following:

    Extension: *
    Operation: Merge
    Command: 
    Arguments: /merge %1 %3 %2 /o:%4 /dn1:%6 /dn2:%8 /dn3:%7 /dno:%9 /nh 
    

    Then it will invoke the external compare and merge tool when you click Merge Changes in Merge Tool to resolve the conflicts. And based on my test it can identify the comparable lines.

    For ExamDiff, you can reference : Using ExamDiff Pro as an External Diff Tool

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