I personally believe IDE-related ignores should be done in a developer's [global .gitignore](https://help.github.com/articles/ignoring-files#global-gitignore) and not in the project itself.