Remove commited ignored files .gitignore
Try this:
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
Remove all items from index.
git rm -r -f --cached .
Rebuild index.
git add .
Make new commit
git commit -m "Remove ignored files"