File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ cd rust
28
28
29
29
Due to the size of the repository, cloning on a slower internet connection can take a long time.
30
30
To sidestep this, you can use the ` --depth N ` option with the ` git clone ` command.
31
- This instructs ` git ` to perform a "shallow clone", cloning the repository but truncating it to the last ` N ` commits.
31
+ This instructs ` git ` to perform a "shallow clone", cloning the repository but truncating it to
32
+ the last ` N ` commits.
32
33
33
- Passing ` --depth 1 ` tells ` git ` to clone the repository but truncate the history to the latest commit
34
- that is on the ` master ` branch, which is usually fine for browsing the source code or building the compiler.
34
+ Passing ` --depth 1 ` tells ` git ` to clone the repository but truncate the history to the latest
35
+ commit that is on the ` master ` branch, which is usually fine for browsing the source code or
36
+ building the compiler.
35
37
36
38
``` bash
37
39
git clone --depth 1 https://github.com/rust-lang/rust.git
You can’t perform that action at this time.
0 commit comments