【问题标题】:Set priority when using Beyond Compare to solve conflicts after a merge在合并后使用 Beyond Compare 解决冲突时设置优先级
【发布时间】:2017-07-10 17:34:18
【问题描述】:

我可以在 Beyond Compare option list 上看到合并工具,可以使用 -favorright-favorleft 选项指定支持右侧或左侧。

如果我尝试使用它会出错

$git merge master

[...](Actual merge with some conflicts)

$git mergetool -favorright
usage: git mergetool [--tool=tool] [--tool-help] [-y|--no-prompt|--prompt] [-O<orderfile>] [file to merge] ...

【问题讨论】:

    标签: git merge beyondcompare beyondcompare4


    【解决方案1】:

    您将-favorright 参数传递给git。您想要的是 git 将该参数传递给 Beyond Compare。此命令将更改您的配置,以便将来每次使用 git mergetool

    $ git config --global mergetool.bc3.cmd "/usr/bin/bcompare -favorright \$LOCAL
    \$REMOTE \$BASE \$MERGED"
    

    您可能需要将 /usr/bin/bcompare 替换为系统上 Beyond Compare 可执行文件的正确路径。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-13
      • 2021-10-24
      • 2021-12-20
      • 2012-03-01
      • 2013-10-28
      • 1970-01-01
      • 2020-08-24
      • 2017-11-02
      相关资源
      最近更新 更多