about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhi-rustin <rustin.liu@gmail.com>2021-05-18 11:47:53 +0800
committerhi-rustin <rustin.liu@gmail.com>2021-05-18 11:47:53 +0800
commitfd442c3f113f2e5dd799dad9488ba77f9b937630 (patch)
treeb1fca5568b4c16a9407088b8bbe1471442b78f37
parent6fcdb8a297d3105832b8a68f7b82f136043a8189 (diff)
downloadrust-fd442c3f113f2e5dd799dad9488ba77f9b937630.tar.gz
rust-fd442c3f113f2e5dd799dad9488ba77f9b937630.zip
Add the command to add upstream remote
-rw-r--r--doc/basics.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/basics.md b/doc/basics.md
index 5226875cc21..e2e307ce4f6 100644
--- a/doc/basics.md
+++ b/doc/basics.md
@@ -28,6 +28,8 @@ git clone git@github.com:<your-username>/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