Created
March 21, 2015 23:49
-
-
Save jalberto/91e0f081b6ea23749eb7 to your computer and use it in GitHub Desktop.
Untrack files from Git usgin 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
git rm --cached `git ls-files -i -X .gitignore` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't works in windows.
Credits: http://stackoverflow.com/questions/1143796/remove-a-file-from-a-git-repository-without-deleting-it-from-the-local-filesyste