Remove node_modules from git in vscode
I faced the same issue. Do the below steps -
- Make .gitignore file.
Run below commands in your terminal
git rm -r --cached node_modules
git commit -am "node_modules be gone!"
git push origin master
That's all!
You are good to go!
- make .gitignore file.
- add node_modules/ line to gitignore file
- run this command
git rm -r --cached . git add . git commit -m "remove gitignore files" git push