[英]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:对于旧版本:
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 中,打开连接的项目或解决方案,然后选择:
It seems the only way to do this is manually removing files.似乎唯一的方法是手动删除文件。 This answer worked for me:
这个答案对我有用:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.