mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Rename chapters into "internals" and "intro"
This commit is contained in:
parent
70fe577788
commit
f3ff5c5147
97 changed files with 0 additions and 0 deletions
levels/internals/tree-create
3
levels/internals/tree-create/congrats
Normal file
3
levels/internals/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/internals/tree-create/description
Normal file
7
levels/internals/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/internals/tree-create/goal
Normal file
1
levels/internals/tree-create/goal
Normal file
|
@ -0,0 +1 @@
|
|||
git write-tree
|
4
levels/internals/tree-create/start
Normal file
4
levels/internals/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/internals/tree-create/win
Normal file
1
levels/internals/tree-create/win
Normal file
|
@ -0,0 +1 @@
|
|||
git cat-file -p 21a638f28022064c1f1df20844278b494d197979
|
Loading…
Add table
Add a link
Reference in a new issue