Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philsav/927472f6bd25ebb8378840bed971c5a4 to your computer and use it in GitHub Desktop.
Save philsav/927472f6bd25ebb8378840bed971c5a4 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 .
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