My team uses bitbucket (under the accademic 'price plan') for all of our projects. Recently we have been writing presentations in latex beamer. This involves importing SVG files into the repo.
We like the ability to have changes mailed to the team, but we got tired of the large diffs detailing the changes to the SVG files. We decided to dump a .gitattributes file into our repo:
This is enough for local git tools (like gitk) to consider the SVGs as binary, but bitbucket will still mail diffs against these files. I propose that it should not.