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

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.


To follow up with @alexriedl's answer, that snippet would be added into settings.json to apply for that workspace only:

{
    "git.enabled": false
}

Here's an example folder structure:

myproject/
├── .vscode/
│   ├── settings.json <----
├── html/
│   ├── index.html
│   └── 404.html
└── js/
    ├── bootstrap.js
    └── bootstrap.min.js

You could add * in your .gitignore file

#to ignore all project's file
*