Skip to content

[Exercise Discussion] T4L1/view-commits #60

@damithc

Description

@damithc

Existing exercise check

Lesson

https://nus-cs2103-ay2526s1.github.io/website/book/gitAndGithub/show/

Exercise learning outcomes

Able to view and understand the diff of a specific commit

Exercise setup

Inputs to the new.sh:

Exercise name: view-commits
Tags (space separated): git-diff git-show
Requires Git? (defaults to y)  [y/N]: y
Requires Github? (defaults to y)  [y/N]: y
Exercise repo type (local, remote, or ignore) (defaults to 'local'): remote
Exercise repo name (defaults to 'view_commits'): duty-roster
Git-Mastery Github repository title (defaults to ''): gm-duty-roster
Create fork of repository? (defaults to y)  [y/N]: N

Clone the repo git-mastery/gm-duty-roster as duty-roster.

Questions to ask:

1. In February, who was replaced in the Wednesday duty roster?
2. In February, who joined the Tuesday duty roster?
3. In April, what were the new names added to the duty rosters? Give the list of names as one line, separated by spaces.
4. In January, who were in the Tuesday duty roster? Give the list of names as one line, separated by spaces.

Instructions for students

Scenario: The duty-roster repo contains five files, each one containing names of people assigned to a duty roster for a specific day of the week. For example, Monday.txt contains names of people assigned to duties on Mondays. These files are updated monthly, to record any changes to duty assignments.

Task: Answer the questions in the answers.txt, by examining the relevant commits in the duty-roster repo.

Exercise grading

Check answers.

Requires remote repository?

https://github.com/git-mastery/gm-duty-roster

Additional remarks

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions