If you already have files created is verycommon that when you include them to be excluded on .gitignore. Git will ignore them.
For that do the following:
git rm -r --cached . #This removes everything from the index, then just run: git add . #Commit it: git commit -m ".gitignore is now working"