mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-12-22 20:32:38 +01:00
file-delete level
This commit is contained in:
parent
f742085fd1
commit
54ae7ce3a8
1 changed files with 25 additions and 0 deletions
25
levels/time-machine/files-delete
Normal file
25
levels/time-machine/files-delete
Normal file
|
@ -0,0 +1,25 @@
|
|||
title = Unexpected Visitors
|
||||
cards = checkout commit-auto reset-hard file-new file-delete
|
||||
|
||||
[description]
|
||||
|
||||
*ring ring* Oh no! You wanted to meet with your parents in your student apartment and your alarm did not go off in time to clean your room!
|
||||
"Coming!" you yell while you jump out of bed. Now quick! Remove all litter and trash you can find by using `rm [file]` and commit your changes.
|
||||
|
||||
[setup]
|
||||
|
||||
echo Very smelly socks. > socks
|
||||
echo A tiny couch table. > table
|
||||
echo An empty energy drink can. > can
|
||||
echo An empty bag of chips. > bag of chips
|
||||
git add .
|
||||
git commit -m "weekend"
|
||||
|
||||
[win]
|
||||
|
||||
NUM_FILES="$(git ls-tree --name-only -r HEAD | wc -l)"
|
||||
test "$NUM_FILES" -eq 1 && test "$(git ls-tree --name-only -r HEAD)" = "table"
|
||||
|
||||
[congrats]
|
||||
|
||||
Your parents are happy to see you (and of course your neat and tidy apartment)!
|
Loading…
Reference in a new issue