1). Repository tutor_react
2). Repository student_react
Target: Pull down the code from Repository
tutor_reactand put the code into our local folderstudent_react
- 1)
git clone git@github.com:ZhangSan/tutor_react.git student_react- 2) git will clone this project into this local folder
student_react- 3)
cd student_clonethis is going to this local folder- 4) If we type the
git remotein the terminal, you will see aoriginhere, but thisoriginis the name oftutor_reactrepo. You can’t push any code to the tutor’s repo since you don’t have the authorization to write in other’s repository. So, at this time, you need to remove theoriginwhich is now point totutor_reactrepository.- 5)
git remote remove originthis command will remove the nameoriginthat point to thetutor_reactrepository.- 6) Now you need to let the name
originpoints to your own repository.- 7)
git remote add origin git@github.com:Yueran-Yu/student_react.gitNow theoriginwill point to yourstudent_reactrepository in github.- 8) Important!!! After you pull down the code from others, you should run
yarn installso that will download all of the packages related to your project.