Skip to content

Instantly share code, notes, and snippets.

@EricBatlle
Last active February 14, 2022 15:26
Show Gist options
  • Save EricBatlle/1b8fcfe30a3d793f19890ced2e86915b to your computer and use it in GitHub Desktop.
Save EricBatlle/1b8fcfe30a3d793f19890ced2e86915b to your computer and use it in GitHub Desktop.
When .gitignore is updated, some files can still be tracked, so this will reset that tracked files
git rm -r --cached .
git add .
git commit -m "Fixed untracked files"
git rm -r --cached . && git add . && git commit -m "Fixed untracked files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment