In my gitignore file i have tried some many ways of ignoring the node_modules folder
.gitignore - file ./node_modules /node_modules node_modules
project structure
- node_modules
- public
- src
- .gitignore
In my gitignore file i have tried some many ways of ignoring the node_modules folder
.gitignore - file ./node_modules /node_modules node_modules
project structure
In cases where /node_modules
in your .gitignore file doesn't work, I suggest this:
git rm -r --cached node_modules
enter the above command before you git push to your repositories