Skip to content

Instantly share code, notes, and snippets.

@S-Voss
Created January 20, 2019 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save S-Voss/b9a054d688b6014e818e782b71f9b5d2 to your computer and use it in GitHub Desktop.
Save S-Voss/b9a054d688b6014e818e782b71f9b5d2 to your computer and use it in GitHub Desktop.
Remove node_modules after pushing to git repository
#add 'node_modules' to .gitignore file
git rm --cached node_modules
git commit -m 'Added node_modules to .gitignore file. Also removed node_modules from git tracking and repository.'
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment