Created
May 29, 2019 16:18
-
-
Save scorsi/09ac3e723c644457ce328aa182ca9272 to your computer and use it in GitHub Desktop.
Remove files from a git repository which are present 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 -i --exclude-from=.gitignore | xargs git rm --cached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment