oh-my-git/levels/intro/copies

43 lines
904 B
Text
Raw Permalink Normal View History

title = Making backups
cards =
[description]
2021-02-04 13:59:13 +01:00
This time, you're making a lot of backup copies - you can look at them by clicking on them!
[congrats]
Okay, this kind of works.
2021-02-04 13:59:13 +01:00
But you're a bit worried that you'll end up with hundreds of copies of this form, 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.
2021-02-04 13:59:13 +01:00
You can't wait to try these time machines!
[setup]
rm -rf .git
2021-02-04 13:59:13 +01:00
echo "~ Why I want to learn Git ~
2021-02-04 13:59:13 +01:00
(I still need to write this.)" >> form.txt
2021-02-04 13:59:13 +01:00
echo "~ Why I want to learn Git ~
2021-02-04 13:59:13 +01:00
- So that I can undo mistakes" >> form2.txt
2021-02-04 13:59:13 +01:00
echo "~ Why I want to learn Git ~
2021-02-04 13:59:13 +01:00
- So that I can undo mistakes
- To track my projects over time" >> form2_final.txt
2021-02-04 13:59:13 +01:00
cp form2_final.txt form2_really_final.txt
[win]
2021-02-04 13:59:13 +01:00
# Add another line to form2_really_final.txt!
test "$(cat form2_really_final.txt | wc -l )" -ge 5