Created
September 2, 2014 08:35
-
-
Save Reacoder/1456956564988153a048 to your computer and use it in GitHub Desktop.
make gitignore work.
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
Even if you haven't tracked the files so far, git seems to be able to "know" about them even after you add them to .gitignore. | |
A quick fix that I've used was to run the following commands from the top folder of your git repo: | |
(edited) | |
git rm -r --cached . | |
Followed by: | |
git add . | |
and | |
git commit -m "fixed untracked files" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment