gitvisual-studio-codeeditor

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?


Solution

  • 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.