Rework levels, and add some new ones

This commit is contained in:
Sebastian Morr 2020-09-15 22:35:14 +02:00
parent 931e9b3beb
commit 35b4dc098a
47 changed files with 163 additions and 39 deletions
levels/commit-parents

View file

@ -2,4 +2,6 @@ When using the commit-tree command, you can optionally specify a parent:
$ git commit-tree <tree> -m "Description" -p <parent commit>
Can you make a string of three commits? We placed an empty tree in your repo to get you started.
Make a string of three commits!
Hint: What would be the easiest way to get a tree object?

View file

@ -1,3 +1,4 @@
git write-tree
FIRST_COMMIT=$(git commit-tree 4b82 -m 'First commit :O')
SECOND_COMMIT=$(git commit-tree 4b82 -p $FIRST_COMMIT -m 'Second commit :D')
THIRD_COMMIT=$(git commit-tree 4b82 -p $SECOND_COMMIT -m 'Third commit \o/')

View file

@ -1 +0,0 @@
git write-tree