summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorarlecchino <kolbma@users.noreply.github.com>2021-06-28 17:08:53 +0200
committerGitHub <noreply@github.com>2021-06-28 17:08:53 +0200
commit3a4433d5a2961e3f3e613bd67459579fbc6277fa (patch)
treea5ee74cc2dab4d36d87b7dedcb920e48e739595a /README.md
parentde6c45ad244528562889138757f3c8c7f089bbec (diff)
docs: Faster git clone command
Clone only release tag without history
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2f21b99..2aa54e0 100644
--- a/README.md
+++ b/README.md
@@ -57,12 +57,12 @@ When you get a permission denied message then you have to exclude the directory
## Manually
-Basically: Clone the repository, checkout to the latest tag, run `cargo install`.
+Basically: Clone the repository at the latest tag, run `cargo install`.
```bash
-git clone https://github.com/rust-lang/rustlings
+# find out the latest version at https://github.com/rust-lang/rustlings/releases/latest (on edit 4.4.0)
+git clone -b 4.4.0 --depth 1 https://github.com/rust-lang/rustlings
cd rustlings
-git checkout tags/4.4.0 # or whatever the latest version is (find out at https://github.com/rust-lang/rustlings/releases/latest)
cargo install --force --path .
```