Skip to content

Instantly share code, notes, and snippets.

@hmemcpy
Last active November 21, 2023 16:46
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save hmemcpy/5bc6b5cc11050b502ca3 to your computer and use it in GitHub Desktop.
Save hmemcpy/5bc6b5cc11050b502ca3 to your computer and use it in GitHub Desktop.
Disabling Visual Studio Git Provider

Here's how to disable the package that is responsible for loading the Git source control support in Visual Studio. Use at your own risk!

  • Create a file called devenv.pkgundef and place it next to devenv.exe in you Visual Studio's Common7\IDE (you'll need elevation for this)
  • Add the following entries to the file:
[$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}]
[$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]
  • Close VS if open, open a Developer command prompt, and type devenv /updateconfiguration
  • Start VS, and voilla - Git support no more!

To undo, delete the devenv.pkgundef file, and run devenv /updateconfiguration again.

@ixtxi
Copy link

ixtxi commented Oct 19, 2023

For me the pkgundef method works on VS 17.7.5 but the file should be named as master.pkgundef.

@iceman2299
Copy link

iceman2299 commented Nov 21, 2023

For me, in "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional" Rename VssProvider.dll and Microsoft.TeamFoundation.Git.Provider.dll to *.bak will disable Git integration.

sure it works (but mine studio is 2022), but visual studio can not compile anything now, it crashes and restarts. So hate this integration. Now i think only temporary renaming .git folder in project can be useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment