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/ref-remove

View file

@ -0,0 +1,5 @@
And finally, to delete a ref, use
git update-ref -d refs/<refname>
Delete all refs! :P (Well, except for HEAD. HEAD is special.)

View file

@ -0,0 +1,3 @@
for REF in $(git for-each-ref --format='%(refname)'); do
git update-ref -d "$REF"
done

View file

@ -0,0 +1,10 @@
echo hello > hello
echo world > world
BLOB1=$(git hash-object -w hello)
BLOB2=$(git hash-object -w world)
git add .
TREE=$(git write-tree)
COMMIT=$(git commit-tree $TREE -m "Initial commit")
git update-ref refs/best_blob_ever "$BLOB1"
git update-ref refs/beautiful_commit "$COMMIT"

View file

@ -0,0 +1 @@
test "$(git show-ref | wc -l)" -eq 0