If you realise you've commited your node_modules folder to Github before adding them to your .gitignore file, you can untrack them by running the following commands:
git rm -r --cached node_modules
git commit -m "removing node_modules"
git push
If you realise you've commited your node_modules folder to Github before adding them to your .gitignore file, you can untrack them by running the following commands:
git rm -r --cached node_modules
git commit -m "removing node_modules"
git push