In the diagram shown on the git-scm page, Recording Changes to a Repository, it shows that when an untracked
file is added, it moves to the unmodified
state.
Is this correct? If I run $ git add myFile
then $ git status
, it shows that myFile
is ready to be committed, which (from my beginner's perspective) looks unintuitive when looking at the diagram on that page.
Is the diagram incorrect, incomplete, or is my understanding of the diagram incorrect? If the latter, please could someone explain what is meant.