When all your attempts failed, you may try this:
$ git rm -r --cached .
This will remove the whole Git cache from your local machine. After that, check if the .gitignore rule is set properly. The folder should now be greyed out (ignored). Then run:
$ git add. $ git commit -m "cleared local git cache" $ git push