Document git-reset <commit> -- <paths>...
Junio C Hamano committed
Dec 26, 2006 at 00:21 UTC
6934dec89538e054823aadcce08af040bc8dcf79
1 file changed
+9
-3
Documentation/git-reset.txt
+9
-3
@@ -7,7 +7,9 @@ git-reset - Reset current HEAD to the specified state
7
8
SYNOPSIS
9
--------
10
-'git-reset' [--mixed | --soft | --hard] [<commit-ish>]
10
+[verse]
11
+'git-reset' [--mixed | --soft | --hard] [<commit>]
12
+'git-reset' [--mixed] <commit> [--] <paths>...
13
14
DESCRIPTION
15
-----------
@@ -21,6 +23,10 @@ the undo in the history.
23
If you want to undo a commit other than the latest on a branch,
24
gitlink:git-revert[1] is your friend.
25
26
+The second form with 'paths' is used to revert selected paths in
27
+the index from a given commit, without moving HEAD.
28
+
29
+
30
OPTIONS
31
-------
32
--mixed::
@@ -37,9 +43,9 @@ OPTIONS
43
--hard::
44
Matches the working tree and index to that of the tree being
45
switched to. Any changes to tracked files in the working tree
40
- since <commit-ish> are lost.
46
+ since <commit> are lost.
47
42
-<commit-ish>::
48
+<commit>::
49
Commit to make the current HEAD.
50
51
Examples