Skip to content

Commit d505865

Browse files
Krzysztof Mazurpeff
authored andcommitted
doc: git-reset: make "<mode>" optional
The git-reset's "<mode>" is an optional argument, however it was documented as required. The "<mode>" is documented as one of: --soft, --mixed, --hard, --merge or --keep, so "<mode>" should be used instead of "--<mode>". Signed-off-by: Krzysztof Mazur <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 7e20105 commit d505865

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/git-reset.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SYNOPSIS
1010
[verse]
1111
'git reset' [-q] [<commit>] [--] <paths>...
1212
'git reset' (--patch | -p) [<commit>] [--] [<paths>...]
13-
'git reset' (--soft | --mixed | --hard | --merge | --keep) [-q] [<commit>]
13+
'git reset' [--soft | --mixed | --hard | --merge | --keep] [-q] [<commit>]
1414

1515
DESCRIPTION
1616
-----------
@@ -43,11 +43,11 @@ This means that `git reset -p` is the opposite of `git add -p`, i.e.
4343
you can use it to selectively reset hunks. See the ``Interactive Mode''
4444
section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
4545

46-
'git reset' --<mode> [<commit>]::
46+
'git reset' [<mode>] [<commit>]::
4747
This form resets the current branch head to <commit> and
4848
possibly updates the index (resetting it to the tree of <commit>) and
49-
the working tree depending on <mode>, which
50-
must be one of the following:
49+
the working tree depending on <mode>. If <mode> is omitted,
50+
defaults to "--mixed". The <mode> must be one of the following:
5151
+
5252
--
5353
--soft::

0 commit comments

Comments
 (0)