Ignore already committed filesPublished: November 18, 2019If 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 ​bashgit rm -r --cached . Step 3 ​bashgit add . Step 4 ​bashgit commit -m ".gitignore fix"