Microsoft Git Provider and Visual Studio 2012 failed to start the configured compare tool

和自甴很熟 提交于 2019-12-10 14:55:33

问题


I'm working with most recent Visual Studio 2012 Update 2 and I have installed official Microsoft's Git support. But when I try to diff modified file studio screams:

Failed to start the configured compare tool.

But it seems there is no configuration for compare tool in Git provider! What should I do to solve the issue?

Maybe I'm missing something?

I've asked the same question in Q&A section in Visual Studio Tools for Git support forum, but no answer for now.


回答1:


If anyone lands on this question for the same issue (like I did), VS 2015 has ability to configure under Git Settings.




回答2:


Make sure that you've set diff.tool for the git environment that visual studio uses. Normally you find this by starting Git bash from the start menu. If you use other git tools, you must set this for the global scope:

git config --global difftool.vs11.cmd "c:/program files (x86)/microsoft visual studio 11.0/common7/ide/devenv.exe" '//diff' "$LOCAL" "$REMOTE"

git config --global diff.tool vs11



来源:https://stackoverflow.com/questions/15243266/microsoft-git-provider-and-visual-studio-2012-failed-to-start-the-configured-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!