首页 > 其他 > 详细

git 调用 Beyond Compare

时间:2016-12-26 16:20:50      阅读:265      评论:0      收藏:0      [点我收藏+]

转载自  http://www.jackness.org/2015/03/31/git-%E8%B0%83%E7%94%A8-%E7%AC%AC%E4%B8%89%E6%96%B9%E5%AF%B9%E6%AF%94%E5%B7%A5%E5%85%B7beyondcompare/?utm_source=tuicool&utm_medium=referral

 

对于我这种 git 命令行小白来说, git 自带的对比工具各种水土不服,想念以前的 svn 小乌龟 + beyondCompare 的日子。。。纠结完 gitHub client 未果之后,终于研究到。。 原来 git 的对比也可以调用第三方工具的, well done!

下面来科普下 如果 在 git 设置 第三方对比工具。

配置 git

打开 .gitconfig 配置文件 (windows 在 C:\Users\Administrator [Administrator 为你当前用户名], mac 在 ~/),加入以下内容

[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项目 目录输入

git difftool git difftool -t bc3

你会看到
技术分享

输入回车之后, ok beyondCompare 启动了~

(tips 如果不能调用 可以在 终端输入任意字母 如 m,就可以调用成功了)
技术分享

git 调用 Beyond Compare

原文:http://www.cnblogs.com/liaokang/p/6222539.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!