Created
October 30, 2017 15:34
-
-
Save GRArmstrong/c558e4f9a0bdc8896fcb11270e4ed3c1 to your computer and use it in GitHub Desktop.
Clear out incorrect committed files from Git, matching extensions defined in .gitignore
This file contains 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 ls-files --ignored --exclude-standard | while read line; do git rm "$line"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment