Skip to content

Instantly share code, notes, and snippets.

@hmemcpy
Last active November 21, 2023 16:46
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.

@AndersBillLinden
Copy link

Does not work for me in vs 2017 enterprise.

@joel-anderson
Copy link

Thank you!
Shamelessly duplicated with modifications here:
https://developercommunity.visualstudio.com/solutions/587860/view.html

@kingsimba
Copy link

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.

@TheSnowfield
Copy link

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.

It works for me but Visual Studio thrown an exception while starting. Thanks.

@slackingfred
Copy link

Is it safe to simply delete the directory containing the buit-in Git install of Visual Studio?

@smaudet
Copy link

smaudet commented Sep 12, 2022

Can confirm the dll trick still works as of VS 16.11.4

The undef thing does not seem to function, though...

@WillHensel
Copy link

The dll trick is still working on VS 17.7.2

I was also unable to get the undef method working. Thanks @kingsimba.

@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