Ubuntu 下安裝Beyond Compare 安裝解決方案


最近一直在Ubuntu 下開發項目功能,今天遇到了git 合並的時候代碼沖突的問題:

使用git mergetool 工具的時候才發現並沒有安裝相關的合並工具

想起來了使用BC ,Beyond Compare 工具 ,查找了安裝教程:

1.bc下載:

 sudo wget http://www.scootersoftware.com/bcompare-4.1.9.21719_amd64.deb

2.直接使用dbkg 安裝命令個進行安裝

 

dk@dk-Inspiron-5576:~/Desktop$ sudo dpkg -i bcompare-4.1.9.21719_amd64.deb 

再使用git mergetool工具的時候提示:

dk@dk-Inspiron-5576:/var/www/html/tvupd$ sudo git mergetool 
[sudo] password for dk: 

This message is displayed because 'merge.tool' is not configured.
See 'git mergetool --tool-help' or 'git help config' for more details.
'git mergetool' will now attempt to use one of the following tools:
opendiff kdiff3 tkdiff xxdiff meld tortoisemerge gvimdiff diffuse diffmerge ecmerge p4merge araxis bc codecompare emerge vimdiff
Merging:
website/application/controllers/Ibrown/Ibrown.php

Normal merge conflict for 'website/application/controllers/Ibrown/Ibrown.php':
  {local}: modified file
  {remote}: modified file
Hit return to start merge resolution tool (bc): 

自動打開了BC對比工具

BC 代碼對比工具有試用期,過期后需要購買,可以考慮使用Meld 工具,只需要在Ubuntu 16.04 LTS的AppStore中搜索Meld 關鍵字即可.

界面簡潔.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM