Merge pull request #786 from kolbma/git-clone-release-tag

docs: Faster git clone command
This commit is contained in:
marisa 2021-06-29 12:46:28 +02:00 committed by GitHub
commit c8c1b87a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -57,12 +57,12 @@ When you get a permission denied message then you have to exclude the directory
## Manually ## 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 ```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 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 . cargo install --force --path .
``` ```