Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable git for some project and other project not disable git in Visual Studio Code?

some project i don't want use git monitoring , but in other project i want to keep use git monitoring , i use setting

"git.enabled": false,
"git.path": null,
"git.autofetch": false

but it will disable git for all project , so how to setting Visual Studio Code git for project instead of the editor?

like image 851
Mark Zhang Avatar asked Apr 07 '17 02:04

Mark Zhang


People also ask

How do I turn off Git?

In order to disable/disconnect your repository associated with your data factory, first select master branch (main) under Git branch settings. Then you need to go to Git Configuration tab under Manage and use Disconnect button to remove the Git repository association as shown in the below GIF.

How do I remove Git from project VS code?

Select Repos, Files. From the repo drop-down, select Manage repositories. Select the name of the repository from the Repositories list, choose the menu, and then choose Delete repository. Confirm the deletion of the repository by typing the repo's name and selecting Delete.

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 VS code in github?

Go to settings (shift+CMD+P MacOS) and search github authentication . Remove the checkbox for Controls ... enable automatic Github authentication.. and VSCode should stop popping up the Github/Microsoft login.


1 Answers

You could add your git settings to the workspace settings.json file. That way, vscode would ignore git changes for only that project. Create or add to the .vscode/settings.json file.

"git.enabled": false

This way all of your other project will continue have git enabled.

like image 66
alexriedl Avatar answered Oct 07 '22 02:10

alexriedl