簡體   English   中英

在使用Beyond Compare解決合並后的沖突時設置優先級

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM