Skip to content

Instantly share code, notes, and snippets.

@BenMcLean
Created February 14, 2019 22:53
Show Gist options
  • Save BenMcLean/4b4d113777d61b2d527d1dad627f9ac3 to your computer and use it in GitHub Desktop.
Save BenMcLean/4b4d113777d61b2d527d1dad627f9ac3 to your computer and use it in GitHub Desktop.
apply-gitignore alias for Git
[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