How to disable git source control on visual studio 2019?

Viewed 7899

The "Git for Windows (32 bit)" process makes Visual Studio 2019's CPU usage high which bugs me because I have multiple programs open at a time, so my PC lags. I've looked up on how to disable git on Visual Studio 2019, Tried the solutions on this link, but they didn't seem to work. My Visual Studio 2019 version is 16.6.0.

2 Answers

Disabling git via going to Tools / Options / Source Control / Plug-in worked thanks to @dxiv's comment, I didn't know because I was looking at old answers.

I found that I was able to solve this issue by removing the .git folder that was in my user root directory. It was C:\Users\MyUserName\.git I don't know where it came from. It did not correspond to any of my legitimate GitHub repositories. It was large and seemed like it was constantly trying to index and prepare my entire user directory to push to a remote repository that did not exist.

This also resolved other ways the seemingly same issue presented itself in both VS2019 and VS Code.

Related