diff --git a/llvm/docs/GettingStarted.rst b/llvm/docs/GettingStarted.rst --- a/llvm/docs/GettingStarted.rst +++ b/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 `_. + 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: