mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Rework levels, and add some new ones
This commit is contained in:
parent
931e9b3beb
commit
35b4dc098a
47 changed files with 163 additions and 39 deletions
levels/blob-remove
5
levels/blob-remove/description
Normal file
5
levels/blob-remove/description
Normal file
|
@ -0,0 +1,5 @@
|
|||
There's a simple command to remove all blobs that are not connected to anything:
|
||||
|
||||
$ git prune
|
||||
|
||||
Remove all blobs in this repository.
|
1
levels/blob-remove/goal
Normal file
1
levels/blob-remove/goal
Normal file
|
@ -0,0 +1 @@
|
|||
git prune
|
3
levels/blob-remove/start
Normal file
3
levels/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/blob-remove/win
Normal file
3
levels/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