mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-13 19:04:54 +01:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
title = Welcome to time travel school!
|
|
cards = config-name commit-auto checkout
|
|
|
|
[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?"
|
|
|
|
[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
|
|
|
|
[actions]
|
|
|
|
test "$(git config user.name)" != "You" && cat form | grep -v Signature && echo "
|
|
Signature: $(git config user.name)" >> form
|
|
|
|
[win]
|
|
|
|
# Introduce yourself.
|
|
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!"
|