From fd442c3f113f2e5dd799dad9488ba77f9b937630 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Tue, 18 May 2021 11:47:53 +0800 Subject: [PATCH] Add the command to add upstream remote --- doc/basics.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/basics.md b/doc/basics.md index 5226875cc210..e2e307ce4f6c 100644 --- a/doc/basics.md +++ b/doc/basics.md @@ -28,6 +28,8 @@ git clone git@github.com:/rust-clippy If you've already cloned Clippy in the past, update it to the latest version: ```bash +# If the upstream remote has not been added yet +git remote add upstream https://github.com/rust-lang/rust-clippy # upstream has to be the remote of the rust-lang/rust-clippy repo git fetch upstream # make sure that you are on the master branch