Getting error while removing node_modules
in git, vscode terminal
git rm -r --cached node_modules
Error:
Make .gitignore
file in your project directory.
.gitignore
file will look like this
/Folder_name
Type in below commands in the terminal or equivalent:
git rm -r --cached Folder_name (remove the directory from git but not delete it from the filesystem/locally)
git commit -m "remove unused directory"
git push origin (can be master or develop or others)