Reputation: 150
The intellij IDEA shows files and folders as not unversioned but they are already on the remote repository. Is it because these files are imported node modules? Or those these file color mean something else?
Upvotes: 0
Views: 1841
Reputation: 4476
The color is because the nodes_modules
folder is marked as the library root
.
Consider to remove the node_modules from source control. A general best practice is to keep the repository small and without dependencies. If you check in your package.json
and package-lock.json
anyone who checks out the repository can download the same dependencies and run your project.
This will keep the footprint of your repository small and tidy and makes it faster to download/process (i.e. in a build tool like jenkins).
Tip: after you've removed the node_modules add a .gitignore
file to exclude it so it won't be accidentally checked in again.
Upvotes: 1