mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Rename chapters into "internals" and "intro"
This commit is contained in:
parent
70fe577788
commit
f3ff5c5147
97 changed files with 0 additions and 0 deletions
levels/internals/puzzle-apocalypse
9
levels/internals/puzzle-apocalypse/description
Normal file
9
levels/internals/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/internals/puzzle-apocalypse/goal
Normal file
4
levels/internals/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/internals/puzzle-apocalypse/start
Normal file
9
levels/internals/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/internals/puzzle-apocalypse/win
Normal file
1
levels/internals/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