且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Visual Studio 中更改源代码管理插件

更新时间:2022-06-16 08:38:16

建议:不要为切换而烦恼.从源代码管理 (SVN) 中删除它并重新检查它 (git).或者,如果通过 Visual Studio 工具删除它不起作用,您可以通过以下方式手动执行此操作:

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:

  1. 关闭 Visual Studio;
  2. 删除 .svn 文件夹
  3. 在记事本中打开 .SLN 文件,找到指定 SCC 提供程序的行,然后删除它们.
  4. 再次在 Visual Studio 中打开解决方案 - 它不应再受源代码控制,您应该能够在 git 中检查它.

从 .sln 文件中手动删除它可以解决问题:

Manually removing this from the .sln file did the trick:

GlobalSection(SubversionScc) = preSolution
    Svn-Managed = True
    Manager = AnkhSVN - Subversion Support for Visual Studio
EndGlobalSection