15

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.

BidoTeima
  • 490
  • 1
  • 4
  • 13
  • 2
    At the risk of asking the obvious, is git turned off in Tools / Options / Source Control / Plug-in Selection? Does the git process start running for all projects, or only those with an existing git repo (.git subdirectory)? – dxiv May 23 '20 at 02:26
  • 1
    Git does start running for all projects, and I didn't actually think of turning git off from settings - seems like I was looking at all websites. thank you, @dxiv – BidoTeima May 23 '20 at 03:46

3 Answers3

16

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.

BidoTeima
  • 490
  • 1
  • 4
  • 13
  • 12
    No longer works. VS will simply bark at you that the current solution will be closed and refuse to disable git integration. – T.S Feb 02 '21 at 08:41
  • 2
    @T.S: It actually disables it for me. It just re-enables it every time I open a solution inside a git clone. – Kaiserludi Feb 26 '21 at 14:29
  • 5
    It's not working and should not be marked as the answer: after every restart of vs, it is re-enabled. It is really a pain and there seems to be no solution yet. – Tillito Jul 13 '21 at 11:32
  • 1
    This did work for me. I got the warning saying my current solution will be closed, but after reopening it (after restarting VS) it seems to no longer track git changes – Itamaram Nov 13 '21 at 23:24
  • In Visual Studio 2022, it worked for me. It warned that it would need to close the solution. After having done this, I could reopen the solution, and it didn't track git info any more. – Binarus Jul 21 '22 at 17:06
3

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.

Justin
  • 474
  • 4
  • 14
0

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