From: Michael J Gruber Date: Wed, 15 Sep 2010 20:47:43 +0000 (+0200) Subject: git-reset.txt: point to git-checkout X-Git-Tag: v1.7.3.3~29^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9980d7de93b1bd932f16478349dce30209070387;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt index 6c94f83da..78f3b74fa 100644 --- a/Documentation/git-reset.txt +++ b/Documentation/git-reset.txt @@ -26,6 +26,13 @@ in all forms. + This means that `git reset ` is the opposite of `git add `. ++ +After running `git reset ` 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 [] [--] [...]:: Interactively select hunks in the difference between the index