Remove Git binding from Visual Studio 2013 solution?

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


Solution 1:

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:

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:

  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:

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.