Skip to content

Instantly share code, notes, and snippets.

@sxwebdev
Forked from sabarasaba/gist:3080590
Created August 24, 2018 21:28
Show Gist options
  • Save sxwebdev/fb82be7b783a34dddcfd186a8b3d335e to your computer and use it in GitHub Desktop.
Save sxwebdev/fb82be7b783a34dddcfd186a8b3d335e 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