Skip to content

Instantly share code, notes, and snippets.

@amb101
Created June 23, 2018 00:46
Show Gist options
  • Save amb101/76c8339be0889e82258ce0e4bad5874e to your computer and use it in GitHub Desktop.
Save amb101/76c8339be0889e82258ce0e4bad5874e to your computer and use it in GitHub Desktop.
Stop tracking node_modules in git repo
#add 'node_modules' to .gitignore file
echo "node_modules/" >> .gitignore
git rm -r --cached node_modules
git commit -m 'Remove node_modules from repo'
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment