'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



Solution 1:[1]

In VS2017 (checked in versions 15.8.9 & 15.9.10) and VS2019 (16.5.4) and VS2022 (17.1.3), 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...

enter image description here

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.

enter image description here

Solution 2:[2]

just remove all .git base files from project root folder and sub folder, after that restart solution and project you will get git free project

Solution 3:[3]

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.

Solution 4:[4]

It seems the only way to do this is manually removing files. This answer worked for me:

Remove .git* files and folders

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Naimish Mungara
Solution 3 DSLuminary
Solution 4 Cassova