Last active
January 12, 2025 21:16
-
-
Save jstrassburg/04320de09bc4da36d38c to your computer and use it in GitHub Desktop.
Remove files added to .gitignore but on the remote repository
This file contains 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 --cached $(git ls-files -i -c --exclude-from=.gitignore) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment