Remove Git binding from Visual Studio 2013 solution?

Version ControlVisual Studio-2013

Version Control Problem Overview


I was adding a new Solution to TFS in Visual Studio 2013, and I selected Git as opposed to TFS.

I want to remove the Git binding, and add TFS.

I know you can remove TFS binding from File -> Source Control, but this doesn't seem to be an option here.

How can I remove Git binding from a Visual Studio solution, and add TFS?

Thanks

Version Control Solutions


Solution 1 - Version Control

I don't believe Visual Studio adds anything special for git integration. It just looks for the presence of the .git directory in the solution folder. Delete that folder, possibly hidden, and Visual Studio will no longer consider it a git project.

Solution 2 - Version Control

snippet for git dir

As @JaredPar mentioned, if you delete the highlighted directories and reload the solution then the solution would no longer be under source control.

Solution 3 - Version Control

  1. Go to Quick Launch(Ctrl+Q)

  2. Search for "Source"

  3. Select the following option Select the option from List

  4. Select the Dropdown list enter image description here

  5. Choose your source control from list and click "ok" enter image description here

Solution 4 - Version Control

Just as a side note. If you by accident create a Git repository in a parent folder of a project under TFS, Visual Studio will use Git as source control for that project too.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJMKView Question on Stackoverflow
Solution 1 - Version ControlJaredParView Answer on Stackoverflow
Solution 2 - Version ControlthemasterchiefView Answer on Stackoverflow
Solution 3 - Version ControlSivanantham PadikkasuView Answer on Stackoverflow
Solution 4 - Version ControlMikael GythView Answer on Stackoverflow