.gitattributes file can override configuration for specific files or paths. In effect, this means that you can check project-specific configuration directly into your git repo, and be assured that every developer will be working with roughly the same configuration options.
This came in especially handy on a recent project. Whenever a certain team member would check in a change, no matter how small, the diff would be enormous! It didn't take long to figure out that we were using different line-endings, and that git interpreted that every single line had been changed. But there was no warning, and by the time we realized it the damage had already been done.
By adding a .gitattributes file to every project since, we've avoided the issue entirely. Developers don't have to change their setup to start working on a project, and our git history remains pristine. Hooray!
# Declare files that will always have CRLF line endings on checkout. *.css text eol=crlf *.html text eol=crlf *.js text eol=crlf