使用Git时在Visual Studio 2013中设置Beyond Compare

Jac*_*cob 32 git beyondcompare3 visual-studio-2013

如何配置Visual Studio以使用Beyond Compare对于如何配置Visual Studio以使用Beyond Compare有很好的答案.但是,这些步骤的UI在Visual Studio 2013中已更改.部分原因可能是由于我正在使用Git进行SCM,而VS 2013现在具有本机Git支持.

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

Ken*_*ach 40

至少对于VS 2012,您实际上只需从Scooter网站上显示的命令提示符进行更新.http://www.scootersoftware.com/support.php?zz=kb_vcs#gitwindows

如果您使用VS中的配置用户工具东西安装了msysgitVS,那么您的Git路径可能是:

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

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

对于Beyond Compare v3使用:

git config --global diff.tool bc3

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

如果你有PRO许可证,那么这些:

git config --global merge.tool bc3

git config --global mergetool.bc3.path"c:/ 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 \"\ "$已合并\""

git config --global mergetool.bc4.trustExitCode true

  • 这不会影响现有存储库.为此,打开Git Bash,将目录(cd)更改为存储库,并执行上述命令而不使用"--global".我在VS2012上做了这个,它无需重启Visual Studio即可运行. (2认同)