oh-my-git/levels/intro/copies

46 lines
1.1 KiB
Text

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!
You think that you're almost done - your current version, just needs one more line!
[congrats]
Okay, this kind of 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.
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]
rm -rf .git
echo "~ Why cats are the best pets ~
(I still need to write this.)" >> essay.txt
echo "~ Why cats are the best pets ~
- They live longer than goldfish." >> essay2.txt
echo "~ Why cats are the best pets ~
- They live longer than goldfish.
- Their little paws are super cute." >> essay2_final.txt
cp essay2_final.txt essay2_really_final.txt
[win]
# Add another line to essay2_really_final.txt!
test "$(cat essay2_really_final.txt | wc -l )" -ge 5