Last active
August 29, 2015 14:08
-
-
Save selahssea-zz/967e37d761ceba4649aa to your computer and use it in GitHub Desktop.
Exclude tracked (commited) files after adding to 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
#! /bin/bash | |
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