Remove Git from Visual Studio 2022

Dave Gray 581 Reputation points
2022-06-24T14:21:09.757+00:00

Hello

How can I make VS2022 forget Git ever existed and use TFS?

I have tons of code in TFS and since I upgraded to VS2022 I cannot seem to use it as VS seems to want to force me down the git path.

If I create a new console app and try to link it to my existing TFS all I can see are Git options. If I try to change the version control settings
it just goes ahead and closes my project. When I re-open I'm back where I started from. There used to be options to select the version
control type but these no longer exist.

Thanks

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yavor Georgiev 6 Reputation points
    2022-12-02T18:22:48.097+00:00

    Hey DaveGray-0128, I have the same problem here. Did you find a solution yet? I've tried to change the option in "Tools > Options > Source Control > Plug-in Selection" but it just closes the solution and does nothing. I tried to connect to the TFS and then open the project, but the result was the same. I tried to connect to the TFS and create a new project, but I couldn't add it to the Source Control. The only option was to add it to Git. What happened with Visual Studio? Why MS is actively trying to detour us from using TFS/Azure? I uninstalled VS 2022 and made a clean install. It did not work! I still cannot add a project/solution to the TFS Source Control. I can connect to the server, bind to a workspace and "Check-Out" but I CANNOT "Check-In"! The "Pending changes" option is missing and if I "right-click" on the Solution/Project the before-available option "Add Solution to Source Control" is missing and only "Push to Git service..." is available.

    1 person found this answer helpful.
    0 comments No comments

  2. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2022-06-27T07:11:43.647+00:00

    Hello @Dave Gray ,

    Welcome to Microsoft Q&A forum.

    Does Tools > Options > Source Control > Plug-in Selection > Current source control plug-in > Git/Visual Studio Team Foundation Server option meet your requirements?

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments