Skip to content

Instantly share code, notes, and snippets.

@ainsofs
Created April 16, 2015 01:50
Show Gist options
  • Save ainsofs/2b80771a5582b7528d9e to your computer and use it in GitHub Desktop.
Save ainsofs/2b80771a5582b7528d9e 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"
@lba-source-code
Copy link

helpful information, massive thanks!

@aamahi
Copy link

aamahi commented Dec 19, 2023

Nice!!! It's working good.

@chadhumphrey
Copy link

easy peasy, lemon squeezy!

@juanmaluzzi-uala
Copy link

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment