Skip to content

Instantly share code, notes, and snippets.

@ewistrand
Forked from ainsofs/gist:2b80771a5582b7528d9e
Created July 19, 2019 19: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 ewistrand/13824bfbbd658baa3246ba8bf75b005f to your computer and use it in GitHub Desktop.
Save ewistrand/13824bfbbd658baa3246ba8bf75b005f 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