Created
February 14, 2019 22:53
-
-
Save BenMcLean/4b4d113777d61b2d527d1dad627f9ac3 to your computer and use it in GitHub Desktop.
apply-gitignore alias for Git
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
[alias] | |
apply-gitignore = !git ls-files -ci --exclude-standard -z | xargs -0r git rm --cached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment