Git: Remove files after updating .gitignore Here, we're removing all files that are currently being ignored in .gitignore: git rm -r --cached . git add . git commit -m "Removes all .gitignore files and folders"