Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LateButEarly/ca4cab39a85359aea4972862daa95f38 to your computer and use it in GitHub Desktop.
Save LateButEarly/ca4cab39a85359aea4972862daa95f38 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