Last active
March 21, 2022 23:14
-
-
Save alwerner/4978755 to your computer and use it in GitHub Desktop.
retroactively add items to .gitignore
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
// make change to .gitignore | |
git rm --cached <filename> | |
// or, for all files | |
git rm -r --cached . | |
git add . | |
// then | |
git add -u | |
git commit -m "manually delete files" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment