Created
August 21, 2014 13:40
-
-
Save dostiharise/bc2ea7665a1a1af0c360 to your computer and use it in GitHub Desktop.
Remove already committed files that match your updated ".gitignore"
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
# List committed files that match updated ".gitignore" | |
$ git ls-files -i --exclude-from=.gitignore | |
# Remove those above files from the commit. | |
$ git rm --cached `git ls-files -i --exclude-from=.gitignore` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment