Browse Source

Document git-reset <commit> -- <paths>...

maint
Junio C Hamano 18 years ago
parent
commit
6934dec895
  1. 12
      Documentation/git-reset.txt

12
Documentation/git-reset.txt

@ -7,7 +7,9 @@ git-reset - Reset current HEAD to the specified state


SYNOPSIS SYNOPSIS
-------- --------
'git-reset' [--mixed | --soft | --hard] [<commit-ish>] [verse]
'git-reset' [--mixed | --soft | --hard] [<commit>]
'git-reset' [--mixed] <commit> [--] <paths>...


DESCRIPTION DESCRIPTION
----------- -----------
@ -21,6 +23,10 @@ the undo in the history.
If you want to undo a commit other than the latest on a branch, If you want to undo a commit other than the latest on a branch,
gitlink:git-revert[1] is your friend. gitlink:git-revert[1] is your friend.


The second form with 'paths' is used to revert selected paths in
the index from a given commit, without moving HEAD.


OPTIONS OPTIONS
------- -------
--mixed:: --mixed::
@ -37,9 +43,9 @@ OPTIONS
--hard:: --hard::
Matches the working tree and index to that of the tree being Matches the working tree and index to that of the tree being
switched to. Any changes to tracked files in the working tree switched to. Any changes to tracked files in the working tree
since <commit-ish> are lost. since <commit> are lost.


<commit-ish>:: <commit>::
Commit to make the current HEAD. Commit to make the current HEAD.


Examples Examples

Loading…
Cancel
Save