Skip to content

Instantly share code, notes, and snippets.

@frhan
Created February 26, 2014 08:44
Show Gist options
  • Save frhan/9225929 to your computer and use it in GitHub Desktop.
Save frhan/9225929 to your computer and use it in GitHub Desktop.
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"
This should fix your problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment