Skip to content

[Exercise Discussion] fetch-and-pull #29

@damithc

Description

@damithc

Existing exercise check

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,

  1. both repos have been added as remotes
  2. Alice's main branch has been pulled
  3. 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

Metadata

Metadata

Labels

exercise discussionDiscussion about the design of an exercisehelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions