Skip to content

Instantly share code, notes, and snippets.

@paulallies
Last active November 12, 2023 23:00
Show Gist options
  • Save paulallies/0052fab554b14bbfa3ef to your computer and use it in GitHub Desktop.
Save paulallies/0052fab554b14bbfa3ef 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 node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@lukasz6678
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment