Skip to content

Instantly share code, notes, and snippets.

@mig82
Forked from ainsofs/gist:2b80771a5582b7528d9e
Last active April 17, 2018 14:37
Show Gist options
  • Save mig82/2fa63292ba5e11617e4c6b27b8cc36cc to your computer and use it in GitHub Desktop.
Save mig82/2fa63292ba5e11617e4c6b27b8cc36cc to your computer and use it in GitHub Desktop.
Clear .gitignore cache
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment