I actually strongly disagree with this guidance.  You should use core.autocrlf false.  A source control system should not be modifying the content of the sources.  There are some tests that specifically depend on crlf and some that specifically depend on lf.  All reasonable editors will correctly maintain line endings, and if someone accidentally checks in crlf line endings it’s noticed and fixed pretty quickly <br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 22, 2018 at 10:38 AM Paul Robinson via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">probinson created this revision.<br>
probinson added reviewers: rnk, hans.<br>
Herald added a subscriber: llvm-commits.<br>
<br>
Failing to do this before cloning causes various hassles that are easily avoided.<br>
<br>
I thought about putting this in the getting-started-with-windows page, but it seemed better to put it right with the git info.<br>
<br>
Should it also be listed in the mono-repo section? That's probably the more popular method now.<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D48494" rel="noreferrer" target="_blank">https://reviews.llvm.org/D48494</a><br>
<br>
Files:<br>
  llvm/docs/GettingStarted.rst<br>
<br>
<br>
Index: llvm/docs/GettingStarted.rst<br>
===================================================================<br>
--- llvm/docs/GettingStarted.rst<br>
+++ llvm/docs/GettingStarted.rst<br>
@@ -492,8 +492,16 @@<br>
 Git mirrors are available for a number of LLVM subprojects. These mirrors sync<br>
 automatically with each Subversion commit and contain all necessary git-svn<br>
 marks (so, you can recreate git-svn metadata locally). Note that right now<br>
-mirrors reflect only ``trunk`` for each project. You can do the read-only Git<br>
-clone of LLVM via:<br>
+mirrors reflect only ``trunk`` for each project.<br>
+<br>
+.. note::<br>
+<br>
+  On Windows, first you will want to do ``git config --global core.autocrlf<br>
+  input`` before you clone. This goes a long way toward ensuring that<br>
+  line-endings will be handled correctly (the LLVM project uses Linux<br>
+  line-endings).<br>
+<br>
+You can do the read-only Git clone of LLVM via:<br>
<br>
 .. code-block:: console<br>
<br>
<br>
<br>
</blockquote></div>