I know I am late, but what worked for me (total git newbie) was executing the following set of git commands:
git rm -r --cached . git add . git commit -am "Remove ignored files and resubmitting filesfiles" To give credit where it is due, here is the link to the source.