Reorder levels and chapters into a better sequence

This commit is contained in:
blinry 2021-01-07 12:57:31 +01:00
parent 5c1f1ce722
commit c99a35d54f
40 changed files with 128 additions and 288 deletions
levels/intro

39
levels/intro/first-remote Normal file
View file

@ -0,0 +1,39 @@
title = Working together
cards = pull commit-auto push
[description]
A friend has asked you to help with an essay about hobbies! She has already started to write a list, started tracking it in a Git repository. You can get a copy by using `git pull`!
[congrats]
"Thanks, these are some really nice hobbies! Hope we can do that together soon!"
[setup]
echo "~ Best hobbies ~" > hobbies.txt
git add .
git commit -m "Initial version"
git push -u friend main
[setup friend]
git checkout main
echo "
- Collecting stamps
- Looking at clouds" >> hobbies.txt
git add .
git commit -m "Added two hobbies"
[win]
# Help her by adding at least two more items to the list!
test "$(cat hobbies.txt |wc -l)" -ge 6
[win friend]
# When you're done, commit your result and use `git push` to send it to her copy of the repository!
test "$(git show main:hobbies.txt |wc -l)" -ge 6