2021-01-11 19:16:35 +01:00
title = Welcome to time travel school!
cards = config-name commit-auto checkout
2021-01-07 17:35:08 +01:00
[description]
2021-01-11 19:16:35 +01:00
Your time travel teacher welcomes you: "Hello there! Wanna tell us your name?"
2021-01-07 17:35:08 +01:00
[setup]
2021-01-11 19:16:35 +01:00
git config --global user.name "You"
echo "~ Why do you want to learn how to use time machines? ~
[ ] To make sure that my cat doesn't eat my homework.
[ ] So I don't have to keep copies of all my essays.
[ ] To collaborate with other time travel students.
[ ] Other, please specify:" > form
2021-01-07 17:35:08 +01:00
[actions]
2021-01-11 19:16:35 +01:00
test "$(git config user.name)" != "You" && hint "Hey $(git config user.name), welcome to time travel school!"
2021-01-07 17:35:08 +01:00
[win]
2021-01-11 19:16:35 +01:00
# Introduce yourself.
2021-01-07 17:35:08 +01:00
test "$(git config user.name)" != "You"
2021-01-11 19:16:35 +01:00
# Fill out the enrollment form, and commit it!
2021-01-12 12:49:14 +01:00
git show main:form | grep '\[[xX]\]'
2021-01-11 19:16:35 +01:00
[congrats]
"We're glad to have you! See how the commit now includes your name?
Git can help you fix problems in the past! It allows you to collaborate with other students of time travel! It's really powerful, and it's really popular! I'll see you for your first lesson tomorrow!"