2021-01-13 17:30:32 +01:00
|
|
|
title = Living dangerously
|
2021-01-11 19:16:35 +01:00
|
|
|
cards =
|
|
|
|
|
|
|
|
[description]
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
So you have decided to apply for time travel school, to learn how to use this time machine called "Git"!
|
|
|
|
|
|
|
|
How exciting!
|
|
|
|
|
|
|
|
You're almost done with the paperwork! You just need to fill in one more reason why you want to learn Git.
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
[congrats]
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
Suddenly, your cat jumps on the table, snatches away the form, and runs away! Oh no. All your hard work, gone!
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-01-13 17:30:32 +01:00
|
|
|
You clearly need a better solution.
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
(Click "Next Level" as soon as you're ready!)
|
|
|
|
|
|
|
|
[setup]
|
|
|
|
|
|
|
|
rm -rf .git
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
echo "~ Why I want to learn Git ~
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
- So that I can undo mistakes
|
|
|
|
- To track my projects over time" >> form.txt
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
[actions]
|
|
|
|
|
|
|
|
test "$(cat form.txt | wc -l )" -ge 5 && echo "(Has been stolen by your cat.)
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
" > form.txt
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
[win]
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
# Add another line to from.txt!
|
|
|
|
test "$(cat form.txt | wc -l )" -ge 5
|