mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-07 05:02:04 +02:00
Allow multiple level sets, pull out default order into "sequence" file
This commit is contained in:
parent
a9f096636a
commit
5031009dd5
96 changed files with 37 additions and 29 deletions
levels/bottom-up/puzzle-apocalypse
9
levels/bottom-up/puzzle-apocalypse/description
Normal file
9
levels/bottom-up/puzzle-apocalypse/description
Normal file
|
@ -0,0 +1,9 @@
|
|||
Delete all objects in this repository using git commands only!
|
||||
|
||||
Useful commands:
|
||||
|
||||
git prune
|
||||
git fsck
|
||||
git reflog expire
|
||||
|
||||
Note: I'm not sure how to beat this level. :D
|
4
levels/bottom-up/puzzle-apocalypse/goal
Normal file
4
levels/bottom-up/puzzle-apocalypse/goal
Normal file
|
@ -0,0 +1,4 @@
|
|||
TREE=$(git mktree)
|
||||
git read-tree $TREE
|
||||
rm -rf .git/refs/*
|
||||
rm -rf .git/objects/*
|
9
levels/bottom-up/puzzle-apocalypse/start
Normal file
9
levels/bottom-up/puzzle-apocalypse/start
Normal file
|
@ -0,0 +1,9 @@
|
|||
echo foo > foo
|
||||
BLOB=$(git hash-object -w foo)
|
||||
echo bar > bar
|
||||
git add .
|
||||
git commit -m "Initial commit"
|
||||
echo blabber >> bar
|
||||
git commit -a -m "Second commit"
|
||||
git update-ref refs/important HEAD
|
||||
git update-ref refs/interesting "$BLOB"
|
1
levels/bottom-up/puzzle-apocalypse/win
Normal file
1
levels/bottom-up/puzzle-apocalypse/win
Normal file
|
@ -0,0 +1 @@
|
|||
test "$(git cat-file --batch-check --batch-all-objects | wc -l)" -eq 0
|
Loading…
Add table
Add a link
Reference in a new issue