@matheusbsbs / matheus-bagliano / commits / 9980d7de93
Fork 0

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>

Michael J Gruber committed Sep 15, 2010 at 22:47 UTC 9980d7de93b1bd932f16478349dce30209070387
1 file changed +7
Documentation/git-reset.txt
+7
@@ -26,6 +26,13 @@ in all forms.
26 +
27 This means that `git reset <paths>` is the opposite of `git add
28 <paths>`.
29 ++
30 +After running `git reset <paths>` to update the index entry, you can
31 +use linkgit:git-checkout[1] to check the contents out of the index to
32 +the working tree.
33 +Alternatively, using linkgit:git-checkout[1] and specifying a commit, you
34 +can copy the contents of a path out of a commit to the index and to the
35 +working tree in one go.
36
37 'git reset' --patch|-p [<commit>] [--] [<paths>...]::
38 Interactively select hunks in the difference between the index