From 4910d13530498e575417d7d8b27e2b58749f18ba Mon Sep 17 00:00:00 2001 From: Trang Le Date: Tue, 16 Mar 2021 20:03:01 +0700 Subject: [PATCH] Add `git fetch` command to pull changes from the fork. If not running this command before `git branch --set-upstream-to origin/master`, the origin/master branch doesn't exist yet in the remote repository. Hence, Git will throw an error: "The requested upstream branch 'origin/develop' does not exist. --- exercises/Exercise8-ForksAndRemoteRepos.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/exercises/Exercise8-ForksAndRemoteRepos.md b/exercises/Exercise8-ForksAndRemoteRepos.md index 3fc616d..e74b3d7 100644 --- a/exercises/Exercise8-ForksAndRemoteRepos.md +++ b/exercises/Exercise8-ForksAndRemoteRepos.md @@ -67,6 +67,18 @@ $> git checkout master Switched to branch 'master' Your branch is up-to-date with 'upstream/master'. +$>git pull origin +From github.com:mhenstell/advanced-git-exercises + * [new branch] exercise10 -> origin/exercise10 + * [new branch] exercise2 -> origin/exercise2 + * [new branch] exercise3 -> origin/exercise3 + * [new branch] exercise4 -> origin/exercise4 + * [new branch] exercise5 -> origin/exercise5 + * [new branch] exercise6 -> origin/exercise6 + * [new branch] exercise7 -> origin/exercise7 + * [new branch] exercise9 -> origin/exercise9 + * [new branch] master -> origin/master + $> git branch --set-upstream-to origin/master Branch master set up to track local branch origin/master. ```