Skip to content

Instantly share code, notes, and snippets.

@devsekhar
Created May 5, 2020 16:39
Show Gist options
  • Save devsekhar/fe0ad7ad79b74ff8693ce01a35b2c08f to your computer and use it in GitHub Desktop.
Save devsekhar/fe0ad7ad79b74ff8693ce01a35b2c08f to your computer and use it in GitHub Desktop.
About how to remove node_modules
touch .gitignore && echo "node_modules/" >> .gitignore && git rm -r --cached node_modules ; git status
It works perfectly (I'm using an OS).
OR
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment