Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created December 27, 2023 03:21
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 jasperf/3443d46532dd6c20f413bd9baee057fe to your computer and use it in GitHub Desktop.
Save jasperf/3443d46532dd6c20f413bd9baee057fe to your computer and use it in GitHub Desktop.
Remove node modules from GIt version control
# add node_modules line to .gitignore file
# run this command
git rm -r --cached node_modules
# Now you can commit your repository without node_modules:
git commit -m "Removed node_modules"
# And push your changes:
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment