在使用Git时,在Visual Studio 2013中设置Beyond Compare [英] Setting up Beyond Compare in Visual Studio 2013 when using Git

查看:191
本文介绍了在使用Git时,在Visual Studio 2013中设置Beyond Compare的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何配置Visual Studio以使用Beyond Compare

a>对于如何配置Visual Studio以使用Beyond Compare有很好的答案。但是,这些步骤的用户界面在Visual Studio 2013中已经发生了变化。其中部分原因可能是由于我为我的SCM使用了Git,而VS 2013现在拥有原生Git支持。



有没有人想过如何配置VS 2013来使用Beyond Compare?

解决方案

2012你实际上可以从命令提示符更新,如Scooter网站上所示。 http://www.scootersoftware.com/support.php?zz=kb_vcs#gitwindows



如果您使用VS中的Configure User Tools thingy安装了msysgitVS,您的Git路径可能是:



< blockquote>

C:\程序文件(x86)\Git\cmd\git.exe

对于Git 1.7.6及更高版本,编辑全局配置文件以设置路径。在Windows命令提示符处输入以下命令:



用于Beyond Compare v3使用:


git config --global diff.tool bc3



git config --global difftool.bc3.pathc:/ program files (x86)/ beyond比较3 / bcomp.exe


如果您有PRO许可证,还有:


git config --global merge.tool bc3



git config --global mergetool.bc3 .pathc:/ program files(x86)/ beyond compare 3 / bcomp.exe

然后在Visual中进行比较Studio将使用BeyondCompare。






Beyond Compare v4使用:


git config --global diff.tool bc4



git config --global difftool.bc4。 cmd\c:/ program files(x86)/ beyond compare 4 / bcomp.exe \\$ LOCAL \\$ REMOTE \



git config --global merge.tool bc4



git config --global mergetool.bc4.cmd\c:/ program files(x86)/ beyond compare 4 / bcomp.exe \ \\$ LOCAL \\$ REMOTE \\$ BASE \\$ MERGED \



git config - -global mergetool.bc4.trustExitCode true


How to configure Visual Studio to use Beyond Compare has a great answer for how to configure Visual Studio to use Beyond Compare. However, the UI for these steps has changed in Visual Studio 2013. Part of this may be due to the fact that I'm using Git for my SCM, and VS 2013 now has native Git support.

Has anyone figured out how to configure VS 2013 to use Beyond Compare?

解决方案

At least for VS 2012 you can actually just update from the command prompt as shown on the Scooter website. http://www.scootersoftware.com/support.php?zz=kb_vcs#gitwindows

If you've installed msysgitVS using the Configure User Tools thingy in VS, your path to Git will probably be:

C:\Program Files (x86)\Git\cmd\git.exe

For Git 1.7.6 and newer, edit the global config file to set the path. At a Windows command prompt enter the following commands:

For Beyond Compare v3 use:

git config --global diff.tool bc3

git config --global difftool.bc3.path "c:/program files (x86)/beyond compare 3/bcomp.exe"

If you've got PRO license, also these:

git config --global merge.tool bc3

git config --global mergetool.bc3.path "c:/program files (x86)/beyond compare 3/bcomp.exe"

Then when doing a comparison in Visual Studio it will use BeyondCompare.


For Beyond Compare v4 use:

git config --global diff.tool bc4

git config --global difftool.bc4.cmd "\"c:/program files (x86)/beyond compare 4/bcomp.exe\" \"$LOCAL\" \"$REMOTE\""

and

git config --global merge.tool bc4

git config --global mergetool.bc4.cmd "\"c:/program files (x86)/beyond compare 4/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""

git config --global mergetool.bc4.trustExitCode true

这篇关于在使用Git时,在Visual Studio 2013中设置Beyond Compare的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆