Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git fetch command to pull changes from the fork before setting local repo to track origin/master #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions exercises/Exercise8-ForksAndRemoteRepos.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
Expand Down