简体   繁体   English

取消绑定解决方案或项目 VS 2017 的源代码管理

[英]Unbind Source Control for Solution or Project VS 2017

Is there a way in Visual Studio 2017 to unbind a solution or project from source control? Visual Studio 2017 中是否有办法从源代码管理中解除绑定解决方案或项目? I can only find answers to this question for older versions which suggest going into File > Source Control however it appears the Source Control option has been removed in this version.我只能为旧版本找到这个问题的答案,这些答案建议进入文件 > 源代码管理,但似乎此版本中的源代码管理选项已被删除。

For older versions:对于旧版本:

2010,2008,2005 2010、2008、2005

In VS2017 (checked in versions 15.8.9 & 15.9.10) and VS2019 (16.5.4), goto:在 VS2017(在 15.8.9 和 15.9.10 版本中检查)和 VS2019 (16.5.4) 中,转到:

Tools / Options / Source Control / Plug-in Selection工具/选项/源代码控制/插件选择

In combo-box "Current source control plug-in:", change to "None" and click OK.在组合框“当前源代码控制插件:”中,更改为“无”并单击“确定”。

The project will close;该项目将关闭; just reopen it and that's all...重新打开它,仅此而已...

在此处输入图片说明

To reach the Plug-in Selection section in Options, you can also use the search box;要访问选项中的插件选择部分,您还可以使用搜索框; just type "Plug-in" and click in "Source control -> Plug-in Selection".只需键入“插件”并单击“源代码控制-> 插件选择”。 In combo-box "Current source control plug-in:", change to "None" and click OK.在组合框“当前源代码控制插件:”中,更改为“无”并单击“确定”。

在此处输入图片说明

只需从项目根文件夹和子文件夹中删除所有 .git 基本文件,重启解决方案和项目后,您将获得 git free 项目

In Visual Studio 2017, open a connected project or solution then select:在 Visual Studio 2017 中,打开连接的项目或解决方案,然后选择:

  1. File档案
  2. Source Control源代码管理
  3. Advanced高级
  4. Change Source Control更改源代码管理
  5. Click Unbind on the project or solution of your choice.在您选择的项目或解决方案上单击取消绑定

It seems the only way to do this is manually removing files.似乎唯一的方法是手动删除文件。 This answer worked for me:这个答案对我有用:

Remove .git* files and folders删除 .git* 文件和文件夹

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 添加解决方案到源控件对VS 2017中的Git没有任何作用 - Add solution to source control does nothing for Git in VS 2017 VS2017; 如何将解决方案源代码控制从本地git更改为GitHub? - VS2017; how to change solution source control from local git to GitHub? 使用团队资源管理器中的 Git 存储库将现有项目添加到 Visual Studio 2017 解决方案中的源代码管理 - Add existing project to source control in Visual Studio 2017 solution using Git repo in Team Explorer 当我尝试在VS2017中启动新项目时,“ Team Foundation Server不是您当前的Source Control插件”问题 - Problems with “Team Foundation Server is not your current Source Control plug-in” when I try to start a new project in VS2017 从现有解决方案向 GIT 源代码管理添加新项目 - Adding new project to GIT source control from existing solution 将现有项目添加到解决方案时如何管理源代码管理 - How To Manage Source Control When Adding Existing Project To A Solution 从源代码管理中删除项目而不删除解决方案的 rest - Remove a project from source control without removing the rest of the solution 解决方案和项目右键单击源代码控制选项丢失 - Solution and Project Right Click Source Control Options Missing 解决方案如何与源代码控制链接? - How is a solution linked to source control? 源代码管理中的Visual Studio 2017文件 - Visual Studio 2017 files in source control
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM