mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-15 19:04:57 +01:00
35 lines
1 KiB
Text
35 lines
1 KiB
Text
title = Welcome to time travel school!
|
|
cards = config-name commit-auto checkout
|
|
|
|
[description]
|
|
|
|
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" && hint "Hey $(git config user.name), welcome to time travel school!"
|
|
|
|
[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 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!"
|