Last active
February 21, 2018 16:24
-
-
Save robinnorth/5831477 to your computer and use it in GitHub Desktop.
Git: Remove all files ignored by .gitignore from repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached . | |
git add . | |
git commit -m 'Removed all files that are in the .gitignore' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From http://stackoverflow.com/a/14797830