title: Where should I place my global 'gitattributes' file?
body: <p>I gather there is (despite the lack of documentation) <a href="https://stackoverflow.com/q/2788649/656912">a way</a> to set <a href="http://git-scm.com/docs/gitattributes" rel="noreferrer">Git attributes</a> globally; but I'm not clear where to place the necessary <code>gitattributes</code> file. The <a href="https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html" rel="noreferrer">instructions</a> say they belong in</p>
  
  <pre><code>$(prefix)/etc/gitattributes
  </code></pre>
  
  <p>But where is <code>$(prefix)</code>? In particular, where would it be for OS X (with Git in <code>/usr/local/git/bin/git</code>)? Alternately (or in addition)  would <code>~/.gitattributes</code> <a href="http://git.kaarsemaker.net/git/commit/2851e8eba52e98d3112417952a24d82ae9d8c0eb/" rel="noreferrer">work</a>?</p>