Getting error while removing node_modules in git, vscode terminal
node_modules
git rm -r --cached node_modules
Error:
Create .gitignore file and add node_modules there:
.gitignore
touch .gitignore && echo "node_modules" >> .gitignore
Remove cached data:
git rm -r --cached .
Update your last commit:
git add . git commit --amend --no-edit git push --force-with-lease