Created
December 27, 2023 03:21
-
-
Save jasperf/3443d46532dd6c20f413bd9baee057fe to your computer and use it in GitHub Desktop.
Remove node modules from GIt version control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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