Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Xoffio/05cddc64b9f719d1ae03bbb928de0aae to your computer and use it in GitHub Desktop.
Save Xoffio/05cddc64b9f719d1ae03bbb928de0aae to your computer and use it in GitHub Desktop.
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment