2021-01-07 12:57:31 +01:00
|
|
|
title = Working together
|
2021-01-11 19:16:35 +01:00
|
|
|
cards = clone checkout commit-auto pull push
|
2021-01-07 12:57:31 +01:00
|
|
|
|
|
|
|
[description]
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
Let's add your name to our list of students!
|
|
|
|
|
2021-02-06 14:42:43 +01:00
|
|
|
I already have this list my time machine - let's work together!
|
|
|
|
|
|
|
|
Drag the "clone" card to my name to make your own copy of my timeline!
|
2021-01-07 12:57:31 +01:00
|
|
|
|
|
|
|
[congrats]
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
Welcome to time travel school! :) I'll see you for your first class tomorrow!
|
2021-01-07 12:57:31 +01:00
|
|
|
|
|
|
|
[setup]
|
|
|
|
|
2021-01-11 19:16:35 +01:00
|
|
|
rm -rf .git
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
[setup teacher]
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
echo "~ List of current students ~" > students
|
2021-01-07 12:57:31 +01:00
|
|
|
git add .
|
|
|
|
git commit -m "Initial version"
|
|
|
|
|
|
|
|
echo "
|
2021-02-04 13:59:13 +01:00
|
|
|
- Sam
|
|
|
|
- Alex" >> students
|
2021-01-07 12:57:31 +01:00
|
|
|
|
|
|
|
git add .
|
2021-02-04 13:59:13 +01:00
|
|
|
git commit -m "Added two students"
|
2021-01-07 12:57:31 +01:00
|
|
|
|
|
|
|
[win]
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
# Get a copy of your teacher's timeline using `git clone`!
|
2021-01-11 19:16:35 +01:00
|
|
|
test -d .git
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
# Add your name to the list of students
|
|
|
|
test "$(cat students |wc -l)" -ge 5
|
2021-01-07 12:57:31 +01:00
|
|
|
|
2021-01-11 19:16:35 +01:00
|
|
|
# Commit your result.
|
2021-02-04 13:59:13 +01:00
|
|
|
test "$(git show main:students |wc -l)" -ge 5
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
[win teacher]
|
2021-01-07 12:57:31 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
# And use `git push` to send it to your teacher!
|
|
|
|
test "$(git show main:students |wc -l)" -ge 5
|