# 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
remove node_modules
git rm -r --cached node_modules
git commit -am "node_modules be gone!"
git push origin master
Remove node modules
rm -r node_modules