Skip to content

Instantly share code, notes, and snippets.

@sarvar
Created January 18, 2019 13:35
Show Gist options
  • Save sarvar/645d63e71c3e0c9a3e5e59adcc2e5ac7 to your computer and use it in GitHub Desktop.
Save sarvar/645d63e71c3e0c9a3e5e59adcc2e5ac7 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