Home > Blockchain >  Question about source control in Vscode(Mac)
Question about source control in Vscode(Mac)

Time:03-04

Currently, I'm working on a project locally, but I'm not familiar with git, so I posted it here for advice.

Project Configuration

The current project configuration is like this. I'm currently working on Study/Blockchain/nft-marketplace.

Vscode Source Control

The source control in vscode contains the entire Study folder in Changes.

Is there a way to change only the Study/Blockchain/nft-marketplace folder to be included in Changes?

Thanks.

CodePudding user response:

(Just put my comment as an answer because, well, it looks like an answer)

Try to open only nft-marketplace. Go to Open folder and select nft-marketplace. If this folder contains a git repo, it will show up in source control. If it does not, initialise a git repo with git init in that folder.

Any time you want to open a project in VSCode, open only that project folder**

**unless it is part of a larger, multi-package repo a-la lerna or yarn workspaces... but this is for another story.

  • Related