1
Answer

How to resolve source control error pointing to git?

Photo of Guest User

Guest User

1y
521
1

Hi Team

Want my project to point to source control(TFS) but each time its does not want to update and point TFS instead its pointing to Git. How do i resolve this problem?

 

Answers (1)

2
Photo of Naimish Makwana
132 13.8k 203.1k 1y

It seems like your project is currently configured to use Git as the source control system, and you want to switch it to Team Foundation Server (TFS). Here are the steps you can follow:

  1. Unbind the project from Git:

    • Open your project in Visual Studio.
    • Go to File > Source Control > Advanced > Change Source Control.
    • Select your solution and click on Unbind.
  2. Remove Git related files:

    • Close Visual Studio.
    • Navigate to your project directory and delete the .git folder. Make sure to enable viewing hidden files in your file explorer to see this folder.
    • Also, delete the .gitignore and .gitattributes files if they exist.
  3. Bind the project to TFS:

    • Open your project in Visual Studio again.
    • Go to File > Source Control > Advanced > Change Source Control.
    • Click on Bind to bind your project to TFS.

Please make sure to backup your project before making these changes. If you have any commits in Git that you want to preserve, you should push them to a remote repository or create a patch file before unbinding Git.

Thanks