Skip to content

Instantly share code, notes, and snippets.

@Ugarz
Forked from Zyber17/gist:8233445
Last active August 2, 2017 20:41
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 Ugarz/76e43175fe243cbcb7384769e1bf5145 to your computer and use it in GitHub Desktop.
Save Ugarz/76e43175fe243cbcb7384769e1bf5145 to your computer and use it in GitHub Desktop.
Remove tracked node_modules

Remove tracked files in git

Works with any files / folder, it's delete in remote the target.

git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment