OSDN Git Service

Document the git config for Windows to do line-endings correctly.
authorPaul Robinson <paul.robinson@sony.com>
Wed, 27 Jun 2018 19:58:28 +0000 (19:58 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Wed, 27 Jun 2018 19:58:28 +0000 (19:58 +0000)
Differential Revision: https://reviews.llvm.org/D48494

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335775 91177308-0d34-0410-b5e6-96231b3b80d8

docs/GettingStarted.rst

index b26df14..7cfd67c 100644 (file)
@@ -492,8 +492,16 @@ Git Mirror
 Git mirrors are available for a number of LLVM subprojects. These mirrors sync
 automatically with each Subversion commit and contain all necessary git-svn
 marks (so, you can recreate git-svn metadata locally). Note that right now
-mirrors reflect only ``trunk`` for each project. You can do the read-only Git
-clone of LLVM via:
+mirrors reflect only ``trunk`` for each project.
+
+.. note::
+
+  On Windows, first you will want to do ``git config --global core.autocrlf
+  false`` before you clone. This goes a long way toward ensuring that
+  line-endings will be handled correctly (the LLVM project mostly uses Linux
+  line-endings).
+
+You can do the read-only Git clone of LLVM via:
 
 .. code-block:: console