Created
October 25, 2017 13:20
-
-
Save leonardortlima/c604d44a16033184b7f98b152bb88750 to your computer and use it in GitHub Desktop.
Adds the "apply-gitignore" command to git, which remove entries that are in .gitignore but are still tracked.
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
# Appended to ~/.gitconfig file | |
# https://stackoverflow.com/a/7532131 | |
[alias] | |
apply-gitignore = !git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remove all not selected merged branches