From 1496902a8cca7c6778643f0c8022cac2e534e27e Mon Sep 17 00:00:00 2001 From: Sebastian Morr Date: Tue, 20 Oct 2020 17:01:54 +0200 Subject: [PATCH] Write a first time-travel level --- levels/time-machine/reorder | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 levels/time-machine/reorder diff --git a/levels/time-machine/reorder b/levels/time-machine/reorder new file mode 100644 index 0000000..03f412a --- /dev/null +++ b/levels/time-machine/reorder @@ -0,0 +1,26 @@ +[description] + +Oops, looks like one of our time agents messed up here. Can you put the events back into their correct order? + +[setup] + +mkdir bakery + +echo has baguette > bakery/bob +echo has money > alice +git add . +git commit -m "Alice is hungry" + +echo has money > bakery/bob +echo has baguette > alice +git commit -a -m "Alice leaves the bakery" + +echo has baguette > bakery/bob +echo has money > bakery/alice +git rm alice +git add . +git commit -a -m "Alice enters the bakery" + +echo has money > bakery/bob +echo has baguette > bakery/alice +git commit -a -m "Alice buys a baguette"