mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-15 19:04:57 +01:00
45 lines
832 B
Text
45 lines
832 B
Text
title = Working together
|
|
cards = clone checkout commit-auto pull push
|
|
|
|
[description]
|
|
|
|
Let's add your name to our list of students!
|
|
|
|
I have a copy of it in my time machine - let's work together!
|
|
|
|
[congrats]
|
|
|
|
Welcome to time travel school! :) I'll see you for your first class tomorrow!
|
|
|
|
[setup]
|
|
|
|
rm -rf .git
|
|
|
|
[setup teacher]
|
|
|
|
echo "~ List of current students ~" > students
|
|
git add .
|
|
git commit -m "Initial version"
|
|
|
|
echo "
|
|
- Sam
|
|
- Alex" >> students
|
|
|
|
git add .
|
|
git commit -m "Added two students"
|
|
|
|
[win]
|
|
|
|
# Get a copy of your teacher's timeline using `git clone`!
|
|
test -d .git
|
|
|
|
# Add your name to the list of students
|
|
test "$(cat students |wc -l)" -ge 5
|
|
|
|
# Commit your result.
|
|
test "$(git show main:students |wc -l)" -ge 5
|
|
|
|
[win teacher]
|
|
|
|
# And use `git push` to send it to your teacher!
|
|
test "$(git show main:students |wc -l)" -ge 5
|