]> git.ipfire.org Git - thirdparty/git.git/commit
doc: git-reset: reorder the forms
authorJulia Evans <julia@jvns.ca>
Fri, 19 Dec 2025 00:23:53 +0000 (19:23 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Dec 2025 09:02:35 +0000 (18:02 +0900)
commit55f489ef53fda1eb8324d3d18e452eca101cd015
tree15ef143a315aba23e1cb94d0e214dce37bb81b4c
parentf229982df19c327876ce7ded40f6efefe20da5d4
doc: git-reset: reorder the forms

From user feedback: three users commented that the `git reset [mode]`
form is the one that they primarily use, and that they were suprised to
see it listed last.
("I've never used git reset in any mode other than --hard").

Move it to be first, since the `git reset [mode]` form is what
"Reset current HEAD to the specified state" at the beginning refers
to, and because the `git reset [mode]` form is the only thing that
`git reset` uniquely does, the others could also be done with
`git restore`.

Signed-off-by: Julia Evans <julia@jvns.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-reset.adoc