git rm -r --cached .
This removes any changed files from the index(staging area), then just run:
git add .
git commit -m ".gitignore is now working"
git rm -r --cached .
This removes any changed files from the index(staging area), then just run:
git add .
git commit -m ".gitignore is now working"