Skip to content

Instantly share code, notes, and snippets.

@robinnorth
Last active February 21, 2018 16:24
Show Gist options
  • Save robinnorth/5831477 to your computer and use it in GitHub Desktop.
Save robinnorth/5831477 to your computer and use it in GitHub Desktop.
Git: Remove all files ignored by .gitignore from repository
git rm -r --cached .
git add .
git commit -m 'Removed all files that are in the .gitignore'
@robinnorth
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment