Git Issues: .gitignore file not ignoring files
If you have a .gitignore file that is getting ignored, here are some steps to correct the behavior.
$ git rm -r –cached .
This removes everything from the index. It will effectively refresh the items that should be tracked by git. You should now be able to readd the items to be tracked…
$ git add .
$ git commit -a -m “.gitignore is now working”