oh-my-git/levels/intro/who-are-you

39 lines
1.1 KiB
Text
Raw Permalink Normal View History

title = Welcome to time travel school!
cards = config-name commit-auto checkout
2021-01-07 17:35:08 +01:00
[description]
You're still pretty confused by everything that's going on. The next day, you decide to enroll in time travel school!
Your time travel teacher welcomes you: "Hello there! Wanna tell us your name?"
2021-01-07 17:35:08 +01:00
[setup]
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]
test "$(git config user.name)" != "You" && cat form | grep -v Signature && echo "
Signature: $(git config user.name)" >> form
2021-01-07 17:35:08 +01:00
[win]
# Introduce yourself.
2021-01-07 17:35:08 +01:00
test "$(git config user.name)" != "You"
# Fill out the enrollment form, and commit it!
git show main:form | grep '\[[xX]\]'
[congrats]
"We're so glad to have you!
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!"