![](/img/trans.png)
[英]Git merge using Beyond Compare when resolving merge conflicts caused by stash pop: files not found
[英]Set priority when using Beyond Compare to solve conflicts after a merge
我可以在mergetool的“ 超越比較”選項列表中看到,可以使用-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] ...
您正在將-favorright
參數傳遞給git
。 您想要的是git
將參數傳遞給“超越比較”。 此命令將更改您的配置,以供將來將來使用git mergetool
使用。
$ git config --global mergetool.bc3.cmd "/usr/bin/bcompare -favorright \$LOCAL
\$REMOTE \$BASE \$MERGED"
您可能需要用/usr/bin/bcompare
替代系統上Beyond Compare可執行文件的正確路徑。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.