Skip to content

Instantly share code, notes, and snippets.

@nixjs
Created January 29, 2020 03:23
Show Gist options
  • Save nixjs/ca99b512edcb576707e3ff77ebdbb77b to your computer and use it in GitHub Desktop.
Save nixjs/ca99b512edcb576707e3ff77ebdbb77b 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