mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-29 20:29:00 +02:00
Allow multiple level sets, pull out default order into "sequence" file
This commit is contained in:
parent
a9f096636a
commit
5031009dd5
96 changed files with 37 additions and 29 deletions
levels/bottom-up/tree-create
3
levels/bottom-up/tree-create/congrats
Normal file
3
levels/bottom-up/tree-create/congrats
Normal file
|
@ -0,0 +1,3 @@
|
|||
Nice!
|
||||
|
||||
Can you make a different tree? Modify the index, then call `git write-tree` again!
|
7
levels/bottom-up/tree-create/description
Normal file
7
levels/bottom-up/tree-create/description
Normal file
|
@ -0,0 +1,7 @@
|
|||
After carefully building the index we want, it would be nice to save a permanent snapshot of it, right?
|
||||
|
||||
This is what the second type of objects is for: trees! You can convert the index into a tree using
|
||||
|
||||
git write-tree
|
||||
|
||||
Try it! :)
|
1
levels/bottom-up/tree-create/goal
Normal file
1
levels/bottom-up/tree-create/goal
Normal file
|
@ -0,0 +1 @@
|
|||
git write-tree
|
4
levels/bottom-up/tree-create/start
Normal file
4
levels/bottom-up/tree-create/start
Normal file
|
@ -0,0 +1,4 @@
|
|||
echo "file 1" > file1
|
||||
echo "file 2" > file2
|
||||
echo "file 3" > file3
|
||||
git add .
|
1
levels/bottom-up/tree-create/win
Normal file
1
levels/bottom-up/tree-create/win
Normal file
|
@ -0,0 +1 @@
|
|||
git cat-file -p 21a638f28022064c1f1df20844278b494d197979
|
Loading…
Add table
Add a link
Reference in a new issue