简体   繁体   中英

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? 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

In VS2017 (checked in versions 15.8.9 & 15.9.10) and VS2019 (16.5.4), goto:

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:

  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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM