Skip to content

Instantly share code, notes, and snippets.

@gearmobile
Forked from S-Voss/remove-node_modules.txt
Last active June 17, 2021 06:36
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 gearmobile/a5fecf2dd8df1db14d5a318182f2d96f to your computer and use it in GitHub Desktop.
Save gearmobile/a5fecf2dd8df1db14d5a318182f2d96f 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