title: Git * text=auto in the gitattributes file and line endings
body: <p>Based on this post:
  <a href="https://stackoverflow.com/questions/21472971/what-is-the-purpose-of-text-auto-in-gitattributes">What is the purpose of `text=auto` in `.gitattributes` file?</a>
  line endings are converted to <strong>LF</strong> for text files if you have the following in the .gitattributes file:</p>
  
  <pre><code>* text=auto
  </code></pre>
  
  <p>I just tested this on a local repository:</p>
  
  <pre><code>$ git add -A
  warning: LF will be replaced by CRLF in [bla]/.gitattributes.
  The file will have its original line endings in your working directory.
  warning: LF will be replaced by CRLF in [bla]/.gitignore.
  The file will have its original line endings in your working directory.
  warning: LF will be replaced by CRLF in [bla]/README.md.
  The file will have its original line endings in your working directory.
  warning: LF will be replaced by CRLF in [bla].csproj.
  The file will have its original line endings in your working directory.
  warning: LF will be replaced by CRLF in 
  </code></pre>
  
  <p>But there it says the it will convert to <strong>CRLF</strong>. In the post above it says it will convert to <strong>LF</strong> which is not the case in this test.</p>
  
  <p>So it seems that:</p>
  
  <pre><code>* text=auto
  </code></pre>
  
  <p>will be converting to the line ending type based on the OS (CRLF for windows and LF for linux). But that is not what is being described here:</p>
  
  <p><a href="https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html" rel="nofollow noreferrer">https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html</a></p>
  
  <p>Based on below comments/answers it seems that the warning resulting from having this:</p>
  
  <pre><code>* text=auto
  </code></pre>
  
  <p>in the .gitattributes file:</p>
  
  <pre><code>warning: LF will be replaced by CRLF in [bla]/README.md.
  The file will have its original line endings in your working directory.
  </code></pre>
  
  <p>Actually means that when you do a check-<strong>out</strong> (next time you checkout a file from the repository to you working directory) text files currently with <strong>LF</strong> endings will be converted to have <strong>CRLF</strong>.</p>
  
  <p>The warning does <strong>NOT</strong> address that on check-<strong>in</strong> lines will have <strong>LF</strong> endings which is what the documentation says here:</p>
  
  <p><a href="https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html" rel="nofollow noreferrer">https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html</a></p>
  
  <p><em>Set to string value "auto"
  When text is set to "auto", the path is marked for automatic end-of-line normalization. If Git decides that the content is text, its line endings are normalized to LF on checkin.</em></p>