Skip to content

Instantly share code, notes, and snippets.

@Reacoder
Created September 2, 2014 08:35
Show Gist options
  • Save Reacoder/1456956564988153a048 to your computer and use it in GitHub Desktop.
Save Reacoder/1456956564988153a048 to your computer and use it in GitHub Desktop.
make gitignore work.
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