Skip to content

Commit 3a4433d

Browse files
authored
docs: Faster git clone command
Clone only release tag without history
1 parent de6c45a commit 3a4433d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ When you get a permission denied message then you have to exclude the directory
5757

5858
## Manually
5959

60-
Basically: Clone the repository, checkout to the latest tag, run `cargo install`.
60+
Basically: Clone the repository at the latest tag, run `cargo install`.
6161

6262
```bash
63-
git clone https://github.com/rust-lang/rustlings
63+
# find out the latest version at https://github.com/rust-lang/rustlings/releases/latest (on edit 4.4.0)
64+
git clone -b 4.4.0 --depth 1 https://github.com/rust-lang/rustlings
6465
cd rustlings
65-
git checkout tags/4.4.0 # or whatever the latest version is (find out at https://github.com/rust-lang/rustlings/releases/latest)
6666
cargo install --force --path .
6767
```
6868

0 commit comments

Comments
 (0)