[PATCH] D97118: [Docs] Mention clone depth feature of git in LLVM getting started

Shivam Gupta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 23 21:29:01 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9a9d56eb3e69: [Docs] Mention clone depth feature of git in LLVM getting started (authored by xgupta).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97118/new/

https://reviews.llvm.org/D97118

Files:
  llvm/docs/GettingStarted.rst


Index: llvm/docs/GettingStarted.rst
===================================================================
--- llvm/docs/GettingStarted.rst
+++ llvm/docs/GettingStarted.rst
@@ -38,6 +38,10 @@
    * ``git clone https://github.com/llvm/llvm-project.git``
    * Or, on windows, ``git clone --config core.autocrlf=false
      https://github.com/llvm/llvm-project.git``
+   * To save storage and speed-up the checkout time, you may want to do a 
+     `shallow clone <https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt>`_. 
+     For example, to get the latest revision of the LLVM project, use 
+     ``git clone --depth 1 https://github.com/llvm/llvm-project.git``
 
 #. Configure and build LLVM and Clang:
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97118.325976.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210224/5943a509/attachment-0001.bin>


More information about the llvm-commits mailing list