xxxxxxxxxx
# Remove the files from the index (not the actual files in the working copy)
$ git rm -r --cached .
# Add these removals to the Staging Area...
$ git add .
# ...and commit them!
$ git commit -m "Clean up ignored files"
xxxxxxxxxx
git rm -r --cached .
git add .
git commit -m "Removes all .gitignore files and folders"
xxxxxxxxxx
git rm -r --cached . && git add . && git commit -am "Remove ignored files"