在 Visual Studio 中更改源代码管理插件 [英] Change source control plug-in in Visual Studio

查看:55
本文介绍了在 Visual Studio 中更改源代码管理插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前该解决方案由SVN管理,我想切换到git.当我执行 Tools->Options->Source Control->Plug-in Selection 并更改插件时,我得到这个对话框:

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:

我从来没有忘记,当我再次打开 .sln 时,它仍然是 SVN.

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.

附加信息:文件已经由 git 管理,我只是使用 git 扩展名克隆了它,它是 np.问题出在 VS 中.

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.

推荐答案

建议:不要为切换而烦恼.从源代码管理 (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

这篇关于在 Visual Studio 中更改源代码管理插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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