mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-06-01 19:19:31 +02:00
More polish, hide unfinished chapters/levels
This commit is contained in:
parent
be45b82e41
commit
5df4932ad5
19 changed files with 48 additions and 55 deletions
levels/intro
|
@ -1,18 +1,23 @@
|
|||
title = Making copies
|
||||
title = Making backups
|
||||
cards =
|
||||
|
||||
[description]
|
||||
|
||||
One month later, you're working on an essay about cats.
|
||||
|
||||
You've started making backup copies of your essay regularly - you can look at them by clicking on them!
|
||||
|
||||
Your current version, essay4.txt, needs one more line
|
||||
You think that you're almost done - your current version, just needs one more line!
|
||||
|
||||
[congrats]
|
||||
|
||||
Okay, this works. But you're a bit worried that two weeks from now, you'll have hundreds of copies of your essay, and it will be hard to keep track of all of them.
|
||||
Okay, this kind of works.
|
||||
|
||||
And especially when working with other people, sending copies back and forth doesn't seem ideal. Let's look at another way to do this!
|
||||
But you're a bit worried that two weeks from now, you'll have hundreds of copies of your essay, and it will be hard to keep track of all of them.
|
||||
|
||||
And especially when working with other people, sending copies back and forth doesn't seem ideal.
|
||||
|
||||
You wonder what would be a better way to do this.
|
||||
|
||||
[setup]
|
||||
|
||||
|
@ -20,7 +25,7 @@ rm -rf .git
|
|||
|
||||
echo "~ Why cats are the best pets ~
|
||||
|
||||
(I still need to write this.)" >> essay1.txt
|
||||
(I still need to write this.)" >> essay.txt
|
||||
|
||||
|
||||
echo "~ Why cats are the best pets ~
|
||||
|
@ -31,11 +36,11 @@ echo "~ Why cats are the best pets ~
|
|||
echo "~ Why cats are the best pets ~
|
||||
|
||||
- They live longer than goldfish.
|
||||
- Their little paws are super cute." >> essay3.txt
|
||||
- Their little paws are super cute." >> essay2_final.txt
|
||||
|
||||
cp essay3.txt essay4.txt
|
||||
cp essay2_final.txt essay2_really_final.txt
|
||||
|
||||
[win]
|
||||
|
||||
# Add two more lines to essay4.txt!
|
||||
test "$(cat essay4.txt | wc -l )" -ge 6
|
||||
# Add another line to essay2_really_final.txt!
|
||||
test "$(cat essay2_really_final.txt | wc -l )" -ge 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue