BidoTeima
BidoTeima

Reputation: 556

How to disable git source control on visual studio 2019?

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.

Upvotes: 17

Views: 14275

Answers (3)

Ramesh Yadav
Ramesh Yadav

Reputation: 31

Just delete the c:\users\yourusername.git folder and VS will stop showing GIT in Team Explorer.

Upvotes: 0

Justin
Justin

Reputation: 594

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.

Upvotes: 3

BidoTeima
BidoTeima

Reputation: 556

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.

Upvotes: 18

Related Questions