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-01-11 19:16:35 +01:00
A friend has asked you to help with an essay about hobbies! She has already started to write a list, and started tracking it with her own time machine!
2021-01-07 12:57:31 +01:00
[congrats]
"Thanks, these are some really nice hobbies! Hope we can do that together soon!"
[setup]
2021-01-11 19:16:35 +01:00
rm -rf .git
[setup friend]
2021-01-07 12:57:31 +01:00
echo "~ Best hobbies ~" > hobbies.txt
git add .
git commit -m "Initial version"
echo "
- Collecting stamps
- Looking at clouds" >> hobbies.txt
git add .
git commit -m "Added two hobbies"
[win]
2021-01-11 19:16:35 +01:00
# Get a copy of her timeline using `git clone`!
test -d .git
2021-01-14 14:06:39 +01:00
# Add at least two more lines to hobbies.txt
2021-01-07 12:57:31 +01:00
test "$(cat hobbies.txt |wc -l)" -ge 6
2021-01-11 19:16:35 +01:00
# Commit your result.
test "$(git show main:hobbies.txt |wc -l)" -ge 6
2021-01-07 12:57:31 +01:00
[win friend]
2021-01-11 19:16:35 +01:00
# And use `git push` to send it to your friend!
2021-01-07 12:57:31 +01:00
test "$(git show main:hobbies.txt |wc -l)" -ge 6