[PATCHv2 5/6] git-reset.txt: point to git-checkout
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Sep 15, 2010, 20:47 UTC
- Message-ID
- <4503439028b2670c7abd090115fc83d266794611.1284582409.git.git@drmicha.warpmail.net>
- In-Reply-To
- <cover.1284365021.git.git@drmicha.warpmail.net>
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> --- Documentation/git-reset.txt | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt index 6c94f83..78f3b74 100644 --- a/Documentation/git-reset.txt +++ b/Documentation/git-reset.txt @@ -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
-- 1.7.3.rc1.215.g6997c