Rename chapters into "internals" and "intro"

This commit is contained in:
Sebastian Morr 2020-10-01 15:03:02 +02:00
parent 70fe577788
commit f3ff5c5147
97 changed files with 0 additions and 0 deletions
levels/internals/blob-remove

View 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.

View 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.

View file

@ -0,0 +1 @@
git prune

View 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

View file

@ -0,0 +1,3 @@
OBJECT_COUNT=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-objects | wc -l)
test "$OBJECT_COUNT" -eq 0