Episode 4: the staging area should be explained earlier #734
Labels
status:waiting for response
Waiting for Contributor to respond to maintainers' comments or update PR
type:enhancement
Propose enhancement to the lesson
In Episode 4, "Tracking Changes", the first usage of
git add
was introduced with the sentenceAnd after the file gets added by the learner, the
git add
command is explained withThe problem here is, that the student might think, that you only need to add a file once, as from this moment on Git knows this file.
After the first commit, the effect of the sequence
git add
andgit commit
is explained as follows:It is confusing that now
git add
is explained as a command "to save" a file, whereas only some sentences earlier it was the command to let Git keep track of the file.The concept of the Staging area (or index, as referred to in the Git manual), should be briefly explained already at this point. This is what
man git add
says:To summarize,
git add
lets Git remember the changes you have applied to a file on your disk, to save them permanently at a later time into your repository.As I used Git the first time a decade ago, I had exactly this problem in understanding the differences between the changes in the (physical) file, the changes that are added to the index and the changes that are recorded as a commit.
I know that the staging area is introduced later by intention, but I think that this part could be a stumbling block for new learners, especially those that don't have a computer science background.
Maybe we could rework this little section to find more precise words that aren't too confusing? Any hints?
The text was updated successfully, but these errors were encountered: