Skip to content

Instantly share code, notes, and snippets.

@ccorcos
Created May 1, 2014 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccorcos/11463044 to your computer and use it in GitHub Desktop.
Save ccorcos/11463044 to your computer and use it in GitHub Desktop.
fix gitignore my clearing git cache
When you're gitignore is not working as it should, clear the cache and re-commit the files. All thanks to this amazing answer:
http://stackoverflow.com/questions/11451535/gitignore-not-working
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment