Browse Source

git-reset.txt: clarify branch vs. branch head

"Change the branch" can be misunderstood to mean "change which branch is
checked out". Make it clearer that git-reset changes the branch head of
the currently checked out branch.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Michael J Gruber 15 years ago committed by Junio C Hamano
parent
commit
ae8285ed63
  1. 4
      Documentation/git-reset.txt

4
Documentation/git-reset.txt

@ -15,7 +15,7 @@ SYNOPSIS @@ -15,7 +15,7 @@ SYNOPSIS
DESCRIPTION
-----------
In the first and second form, copy entries from <commit> to the index.
In the third form, set the current branch to <commit>, optionally
In the third form, set the current branch head to <commit>, optionally
modifying index and worktree to match. The <commit> defaults to HEAD
in all forms.

@ -36,7 +36,7 @@ This means that `git reset -p` is the opposite of `git add -p` (see @@ -36,7 +36,7 @@ This means that `git reset -p` is the opposite of `git add -p` (see
linkgit:git-add[1]).

'git reset' [--<mode>] [<commit>]::
This form points the current branch to <commit> and then
This form resets the current branch head to <commit> and then
updates index and working tree according to <mode>, which must
be one of the following:
+

Loading…
Cancel
Save