If you follow these commands on your .gitignore file and files still seems to appear you may want to try:
git rm --cached FILENAME
After that, add your .gitignore, commit and push.
Took me 40 minutes to understand that, hope this helps to newbies like me