首页 > 其他 > 详细

用beyongd compare作为Git 的diff 以及 merge工具

时间:2015-09-16 15:27:15      阅读:290      评论:0      收藏:0      [点我收藏+]

 

BC官方支持: http://www.scootersoftware.com/support.php?zz=kb_vcs#gitwindows

GIT FOR WINDOWS

技术分享 BC version 4
Diff
At a Windows command prompt enter the commands:
  git config --global diff.tool bc3
  git config --global difftool.bc3.path "c:/Program Files (x86)/Beyond Compare 4/bcomp.exe"

Note: Git versions older than 2.2.0 (git --version) use "bc3" as the keyword for BC4. For Git 2.2.0+, use "bc". To launch a diff using Beyond Compare, use the command "git difftool foofile.txt".

3-way Merge 技术分享
At a Windows command prompt, enter the commands:
  git config --global merge.tool bc3
  git config --global mergetool.bc3.path "c:/Program Files (x86)/Beyond Compare 4/bcomp.exe"

Note: Git versions older than 2.2.0 (git --version) use "bc3" as the keyword for BC4. For Git 2.2.0+, use "bc". To launch a 3-way merge using Beyond Compare, use the command "git mergetool foofile.txt".

 

当安装以上设置配置好后,采用gifftool即可打开beyond compare进行对比

git difftool <file>

 

请注意,不是 git diff 仅是---,++++文字性格式的对比。

 

另外,如果想使用beyond compare比较两个分支的差异, 可以加上参数--dir-dif

git difftool --dir-dif master dev  &

The details refer to http://stackoverflow.com/questions/3365933/getting-beyond-compare-to-diff-2-branches-simultaneously

 

&是指后台运行。方便做其他操作

用beyongd compare作为Git 的diff 以及 merge工具

原文:http://www.cnblogs.com/orangeseason/p/4813218.html

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