-
Notifications
You must be signed in to change notification settings - Fork 25
Labels
approvedexercise discussionDiscussion about the design of an exerciseDiscussion about the design of an exercise
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/merge/index.html (see detour: Doing a Squash Merge)
Exercise learning outcomes
Able to a squash merge
Exercise setup
Inputs to the new.sh:
Exercise name: merge-squash
Tags (space separated): git-branch git-merge git-reset
Requires Git? (defaults to y) [y/N]: y
Requires Github? (defaults to y) [y/N]: N
Exercise repo type (local, remote, or ignore) (defaults to 'local'): local
Exercise repo name (defaults to ...): friends-cast
Git-Mastery Github repository title (defaults to ''):
Initialize exercise repo as Git repository? (defaults to y) [y/N]: Y
Equivalent steps to popoulate the repo
echo -e "Matt LeBlanc" >> joey.txt
git add .
git commit -m "Add Joey"
echo -e "Lisa Kudrow" >> phoebe.txt
git add .
git commit -m "Add Phoebe"
git switch -c supporting
echo -e "Paul Rudd" >> mike.txt
git add .
git commit -m "Add Mike"
echo -e "Maggie Wheeler" >> janice.txt
git add .
git commit -m "Add Janice"
git switch main
echo -e "David Schwimmer" >> ross.txt
git add .
git commit -m "Add Ross"
Instructions for students
See https://git-mastery.github.io/lessons/merge/exercise-merge-squash.html
Exercise grading
Verify that, there is a new commit in the main branch containing the expected changes.
Requires remote repository?
No response
Additional remarks
No response
Metadata
Metadata
Assignees
Labels
approvedexercise discussionDiscussion about the design of an exerciseDiscussion about the design of an exercise