mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-05 05:02:02 +02:00
More polish for the index level
This commit is contained in:
parent
4f4857bdf6
commit
a86fcaadbb
6 changed files with 44 additions and 25 deletions
levels/index
|
@ -3,12 +3,14 @@ cards = add commit
|
|||
|
||||
[description]
|
||||
|
||||
So far, when we made a commit, we've always recorded the current status all objects, right?
|
||||
So far, when we made a commit, we've always recorded the current status of all objects, right?
|
||||
|
||||
But Git allows you to pick which changes you want to put in a commit!
|
||||
|
||||
To learn how that works, we need to learn about the "index"! In the index, we can prepare what will be in the next commit. In this game, the index is represented by a blue aura!
|
||||
|
||||
Initially, the index is empty. To make a commit that contains a new file, we need to add it!
|
||||
|
||||
[setup]
|
||||
|
||||
echo "The candle is burning with a blue flame." > candle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue