Skip to content

ambiguity in the arrow for reset in first diagram #64

Closed
@categulario

Description

@categulario

In the diagram the command git reset -- files is pointing from the history towards the stage area:

Captura de pantalla de 2019-06-13 13-32-48

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions