[轉]Git調用第三方對比工具beyondCompare

來源:互聯網
上載者:User

標籤:

點擊閱讀原文

 

對於我這種 git 命令列小白來說, git 內建的對比工具各種水土不服,想念以前的 svn 小烏龜 + beyondCompare 的日子。。。糾結完 gitHub client 未果之後,終於研究到。。 原來 git 的對比也可以調用第三方工具的, well done!

下面來科普下 如果 在 git 設定 第三方對比工具。

配置 git

開啟 .gitconfig 設定檔 (windows 在 C:\Users\Administrator [Administrator 為你目前使用者名], mac 在 ~/),加入以下內容

?
12345678 [diff]    tool = bc3[difftool "bc3"]    path = D:/Program Files (x86)/Beyond Compare 3/BCompare.exe[merge]    tool = bc3[mergetool "bc3"]    path = D:/Program Files (x86)/Beyond Compare 3/BCompare.exe

其中 path 為你 beyondCompare 的安裝目錄;

ok 搞好了, 讓我們試試效果

開啟你的git項目 目錄輸入

?
1 git difftool git difftool -t bc3

你會看到

輸入斷行符號之後, ok beyondCompare 啟動了~

(tips 如果不能調用 可以在 終端輸入任意字母 如 m,就可以調用成功了)

[轉]Git調用第三方對比工具beyondCompare

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.