This is a commmand to fix Git when you introduce a new ignore into your .gitignore
file and want to delete all instances of that file.
Created
February 17, 2025 08:32
-
-
Save Lamparter/79a0ccb1507f0e32c8e8024b73df3c9f to your computer and use it in GitHub Desktop.
Command to fix Git when you update the ignore with files already
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a very simple fix but a pain when this happens.