Skip to content

Instantly share code, notes, and snippets.

@jgabriellima
Forked from sabarasaba/gist:3080590
Created July 27, 2018 12:53
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 jgabriellima/7840890ba18c7a1235ac02dbae0a2dfb to your computer and use it in GitHub Desktop.
Save jgabriellima/7840890ba18c7a1235ac02dbae0a2dfb to your computer and use it in GitHub Desktop.
Remove directory from remote repository after adding them to .gitignore
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