-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Lesson
https://nus-cs2103-ay2526s1.github.io/website/book/gitAndGithub/show/
Hands-on setup
Responses to provide when running new.sh:
Hands-on name: hp-view-commits
Requires Git? (defaults to y) [y/N]: y
Requires Github? (defaults to y) [y/N]: N
Equivalent bash commands for creating the sandbox:
echo -e "apples\nbananas\ncherries\ndragon fruits" >> fruits.txt
git add fruits.txt
git commit -m "Add fruits.txt"
echo -e "elderberries\nfigs" >> fruits.txt
git add fruits.txt # stage the updated file
git commit -m "Add elderberries and figs into fruits.txt"
echo "a file for colours" >> colours.txt
echo "a file for shapes" >> shapes.txt
git add colours.txt shapes.txt
git commit -m "Add colours.txt, shapes.txt"
echo -e "apples, apricots\nbananas\nblueberries\ncherries\ndragon fruits\nfigs" > fruits.txt
git commit -am "Update fruits list"
Instructions for students
For this hands-on practical, you may any repo with some commits, or run gitmastery download hp-view-commits to create a fresh sandbox.
Requires remote repository?
No
Additional remarks
N/A