Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Some git doc is wrong and terminology is inconsistent & ambiguous. man git "Reset, restore and revert", supposedly explains these 3 similar overlapping commands (proliferation of commands indicates poor command structure in the first place), says git reset "changes commit history" yet here it doesn't? It also says git restore "does not update your branch". If nothing is changed what on earth is the command doing? What does "branch" actually mean? And here in your comment what does "anything else" mean? Sometimes people use an assumed context and following the advice can hurt.
    – NeilG
    Commented Jul 13, 2022 at 2:14