mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-27 20:29:22 +02:00
Extract terminal in its own scene, add a few proper levels with a description
This commit is contained in:
parent
ebbb505283
commit
7373984d47
18 changed files with 179 additions and 92 deletions
levels/03-commit
9
levels/03-commit/description
Normal file
9
levels/03-commit/description
Normal file
|
@ -0,0 +1,9 @@
|
|||
So a tree describes the state of a directory structure at a specific point in time.
|
||||
|
||||
It would be nice if we could remember when that state existed, and who authored it, right?
|
||||
|
||||
Enter: commits. They are objects that point to a tree and contain some additional metadata. You can create a commit using
|
||||
|
||||
$ git commit-tree <tree> -m "Description of your commit"
|
||||
|
||||
Make a commit from the tree in this repository!
|
7
levels/03-commit/goal
Normal file
7
levels/03-commit/goal
Normal file
|
@ -0,0 +1,7 @@
|
|||
touch empty_file
|
||||
git add .
|
||||
git write-tree
|
||||
git commit-tree 3185 -m 'Clever commit message'
|
||||
|
||||
rm empty_file
|
||||
git update-index --remove empty_file
|
6
levels/03-commit/start
Normal file
6
levels/03-commit/start
Normal file
|
@ -0,0 +1,6 @@
|
|||
touch empty_file
|
||||
git add .
|
||||
git write-tree
|
||||
|
||||
rm empty_file
|
||||
git update-index --remove empty_file
|
Loading…
Add table
Add a link
Reference in a new issue