mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +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/blob-remove
3
levels/bottom-up/blob-remove/congrats
Normal file
3
levels/bottom-up/blob-remove/congrats
Normal file
|
@ -0,0 +1,3 @@
|
|||
Generally, `git prune` will be useful if you want to clean up some objects you made.
|
||||
|
||||
Alternatively, you can also click the "Reload" button to restart a level.
|
5
levels/bottom-up/blob-remove/description
Normal file
5
levels/bottom-up/blob-remove/description
Normal file
|
@ -0,0 +1,5 @@
|
|||
There's a simple command to remove all objects that are not referenced by anything:
|
||||
|
||||
git prune
|
||||
|
||||
Remove all blobs in this repository.
|
1
levels/bottom-up/blob-remove/goal
Normal file
1
levels/bottom-up/blob-remove/goal
Normal file
|
@ -0,0 +1 @@
|
|||
git prune
|
3
levels/bottom-up/blob-remove/start
Normal file
3
levels/bottom-up/blob-remove/start
Normal file
|
@ -0,0 +1,3 @@
|
|||
echo "My master password is a1b2c3d4e5" | git hash-object -w --stdin
|
||||
echo "This blob really should not exist" | git hash-object -w --stdin
|
||||
echo "This is a virus" | git hash-object -w --stdin
|
3
levels/bottom-up/blob-remove/win
Normal file
3
levels/bottom-up/blob-remove/win
Normal file
|
@ -0,0 +1,3 @@
|
|||
OBJECT_COUNT=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-objects | wc -l)
|
||||
|
||||
test "$OBJECT_COUNT" -eq 0
|
Loading…
Add table
Add a link
Reference in a new issue