Today I Learned
If a file is added/tracked once by git and then added to the .gitignore list, it might continue to be tracked. Yes, despite being in the .gitignore list.
it might have to do with the git cache and the way to workaround this is:
git rm –cached FILENAME