2021-01-13 17:30:32 +01:00
|
|
|
title = Making backups
|
2021-01-11 19:16:35 +01:00
|
|
|
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!
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
[congrats]
|
|
|
|
|
2021-01-13 17:30:32 +01:00
|
|
|
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.
|
2021-01-13 17:30:32 +01:00
|
|
|
|
|
|
|
And especially when working with other people, sending copies back and forth doesn't seem ideal.
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
You can't wait to try these time machines!
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
[setup]
|
|
|
|
|
|
|
|
rm -rf .git
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
echo "~ Why I want to learn Git ~
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
(I still need to write this.)" >> form.txt
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
echo "~ Why I want to learn Git ~
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
- So that I can undo mistakes" >> form2.txt
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
echo "~ Why I want to learn Git ~
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
- So that I can undo mistakes
|
|
|
|
- To track my projects over time" >> form2_final.txt
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-02-04 13:59:13 +01:00
|
|
|
cp form2_final.txt form2_really_final.txt
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
[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
|