Skip to content

Instantly share code, notes, and snippets.

@AdvaithD
Created November 1, 2017 01:45
Show Gist options
  • Save AdvaithD/fcdfbf5a2707ca3b022b65287c9c036f to your computer and use it in GitHub Desktop.
Save AdvaithD/fcdfbf5a2707ca3b022b65287c9c036f to your computer and use it in GitHub Desktop.
stop tracking 'node_modules' in a git repo
$ touch .gitignore
$ nano .gitignore
Add 'node_modules' to .gitignore file
$ git rm -r --cached node_modules
$ git commit -m 'Stopped tracking node modules'
$ git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment