git rm -r --cached . git add . git commit -m "Now my .gitignore file works correctly!"