Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 264
BidoTeima Avatar asked May 23 '20 01:05

BidoTeima


People also ask

How do I disable Source Control in Visual Studio project?

Select File > Project Properties. Select the Source Control tab. Click Unbind Project.

How do I disable Source Control?

To disable source control, on the Home tab, in the Environment section, click Preferences. Select MATLAB > General > Source Control and click None. When you disable source control, MATLAB® does not destroy repository information. For example, it does not remove the .

How do I remove Source Control from VS code?

How do I remove source control from Visual Studio project? In the Project Explorer, select the file to remove. If you select a folder, project, or solution, any eligible child items will also be removed. choose Source Control > Remove or press Ctrl+R, R.

How do I change the Git settings in Visual Studio?

To configure Git settings in Visual Studio, choose Settings from the top-level Git menu. Choose Git Global Settings or Git Repository Settings to view and configure global-level or repository-level settings.


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.

like image 136
BidoTeima Avatar answered Oct 31 '22 21:10

BidoTeima


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.

like image 43
Justin Avatar answered Oct 31 '22 21:10

Justin