oh-my-git/levels/intro/risky

43 lines
807 B
Text
Raw Normal View History

title = Living dangerously
cards =
[description]
So you have decided to apply for time travel school, to learn how to use this time machine called 'Git'!
2021-02-04 13:59:13 +01:00
How exciting!
You're almost done with the paperwork! You just need to fill in one more reason why you want to learn Git.
[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!
You clearly need a better solution.
(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-02-04 13:59:13 +01:00
- So that I can undo mistakes
- To track my projects over time" >> form.txt
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-02-04 13:59:13 +01:00
" > form.txt
[win]
# Add another line to form.txt!
2021-02-04 13:59:13 +01:00
test "$(cat form.txt | wc -l )" -ge 5