Created
July 21, 2015 23:56
-
-
Save MattLoyeD/365f6ffcede2f123135d to your computer and use it in GitHub Desktop.
Remove files from git based on gitignore
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 ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment