mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-05 05:02:02 +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/commit-parents
|
@ -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?
|
||||
|
|
|
@ -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/')
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
git write-tree
|
Loading…
Add table
Add a link
Reference in a new issue