Closed
Description
In the diagram the command git reset -- files
is pointing from the history towards the stage area:
however in the description it is stated that:
git reset -- files unstages files; that is, it copies files from the latest commit to the stage. Use this command to "undo" a git add files. You can also git reset to unstage everything.
so there are conflicting statements here:
- unstages files (implies from stage to WD)
- copies files from the latest commit to the stage (implies from history to stage)
- use this command to undo git add (since git add goes from WD to stage, this implies from stage to WD)
The specified usage (git reset -- files
) implies an arrow in the same direction as git checkout
. Perhaps is worth mentioning the git reset [--hard|--soft] tree-ish
variant that actually follows the arrow in the diagram.
It relates to #20
Metadata
Metadata
Assignees
Labels
No labels