Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save HermesMartins/5f82f5e33e0092ec7eb652c1c05d6b10 to your computer and use it in GitHub Desktop.
Save HermesMartins/5f82f5e33e0092ec7eb652c1c05d6b10 to your computer and use it in GitHub Desktop.
Fixed .gitignore cache problem
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
# fixed git ignore
git add .
git commit -m 'fixed .gitignore'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment