title: Best practices for cross platform git config?
body: <h2>Context</h2>
  
  <p>A number of my application user configuration files are kept in a git repository for easy sharing across multiple machines and multiple platforms. Amongst these configuration files is <code>.gitconfig</code> which contains the following settings for handling the carriage return linefeed characters</p>
  
  <pre><code>[core]
      autocrlf = true
      safecrlf = false
  </code></pre>
  
  <h2>Problem</h2>
  
  <p>These settings also gets applied on a GNU/Linux platform which causes obscure errors. </p>
  
  <h2>Question</h2>
  
  <p>What are some best practices for handling these platform specific differences in configuration files? </p>
  
  <h2>Proposed solution</h2>
  
  <p>I realize this problem could be solved by having a branch for each platform and keeping the common stuff in master and merging with the platform branch when master moves forward. I'm wondering if there are any <em>easier</em> solutions to this problem?</p>