-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Existing exercise check
- I have verified that this exercise is not yet already in discussion, in progress, or exists
Lesson
https://nus-cs2103-ay2526s1.github.io/website/book/gitAndGithub/pull/index.html
Exercise learning outcomes
Able to pull from remotes, to the default branch.
Exercise setup
exercise name: fetch-and-pull
tags: git-pull
git-fetch
Clone git-mastery/gm-shapes repo to fetch-and-pull/gm-shapes
Instructions for students
You have been given a clone of the git-mastery/gm-shapes repo.
Another developer Alice's has created a remote copy of this repo at https://github.com/git-mastery/gm-shapes-alice which seems to have an additional commit in the main
branch. Add that repo as a remote, and bring over Alice's additional commit to your repo.
Alice's friend Bob has copied Alice's repo to https://github.com/git-mastery/gm-shapes-bob, and added one more commit. Add that repo as another remote, and fetch (not pull or merge) his new commit to your repo.
Exercise grading
Verify that,
- both repos have been added as remotes
- Alice's main branch has been pulled
- Bob's main branch has been fetched but not merged
Requires remote repository?
https://github.com/git-mastery/gm-shapes-alice https://github.com/git-mastery/gm-shapes-bob
Additional remarks
No response