Browse Source

git-reset.txt: point to git-checkout

for the case of updating a file in index and worktree, or from the index
to the worktree.

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
9980d7de93
  1. 7
      Documentation/git-reset.txt

7
Documentation/git-reset.txt

@ -26,6 +26,13 @@ in all forms. @@ -26,6 +26,13 @@ in all forms.
+
This means that `git reset <paths>` is the opposite of `git add
<paths>`.
+
After running `git reset <paths>` to update the index entry, you can
use linkgit:git-checkout[1] to check the contents out of the index to
the working tree.
Alternatively, using linkgit:git-checkout[1] and specifying a commit, you
can copy the contents of a path out of a commit to the index and to the
working tree in one go.

'git reset' --patch|-p [<commit>] [--] [<paths>...]::
Interactively select hunks in the difference between the index

Loading…
Cancel
Save