Ignore already committed files

Published: November 18, 2019

If you have some files that should be ignored, but you discovered them after committing or pushing the files, this will fix that.

Step 1

Make sure all your changes are committed!

Step 2

bash
git rm -r --cached .

Step 3

bash
git add .

Step 4

bash
git commit -m ".gitignore fix"