在Visual Studio中更改源代码管理插件 [英] Change source control plug-in in Visual Studio
问题描述
目前解决方案由SVN管理,我想切换到git。当我做Tools-> Options-> Source Control-> Plug-in Selection and change plug-in时,我得到这个对话框:
$ b
我再也无法过去,当我再次打开.sln时它仍然是SVN。
我有一种感觉,我已经在过去做了这么多次。
其他info:这些文件已经由git管理,我只是使用git扩展来克隆它,它是np。问题出在VS.
建议:不要打扰切换。将其从源代码管理(SVN)中删除并重新检查(git)。或者,如果通过Visual Studio工具删除它不起作用,请按照以下步骤手动执行: 关闭Visual Studio; >
编辑:
手动从.sln文件中删除这个操作的窍门是:
GlobalSection SubversionScc)= preSolution
Svn-Managed = True
Manager = AnkhSVN - Subversion支持Visual Studio
EndGlobalSection
Currently the solution is managed by SVN and I want to switch to git. When I do Tools->Options->Source Control->Plug-in Selection and change plug-in I get this dialog:
I never get past that, when I open the .sln again it is still SVN.
I have a feeling I have done this many times in the past.
Additional info: The files are already managed by git, I just cloned it using git extensions and it was np. The issue is in VS.
Suggestion: Don't bother with switching. Remove it from source control (SVN) and check it in anew (git). Or, if removing it by Visual Studio tools doesn't work, here's how you do it manually:
- Close Visual Studio;
- Delete the .svn folder
- Open the .SLN file in notepad, find the lines which specify the SCC provider, and delete them.
- Open the solution in Visual Studio again - it should not be under source control anymore and you should be able to check it in git.
Edit: Manually removing this from the .sln file did the trick:
GlobalSection(SubversionScc) = preSolution
Svn-Managed = True
Manager = AnkhSVN - Subversion Support for Visual Studio
EndGlobalSection
这篇关于在Visual Studio中更改源代码管理插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!