Skip to content

Commit

Permalink
Document git-reset <commit> -- <paths>...
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed Dec 26, 2006
1 parent 2f89543 commit 6934dec
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Documentation/git-reset.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ git-reset - Reset current HEAD to the specified state

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

DESCRIPTION
-----------
Expand All @@ -21,6 +23,10 @@ the undo in the history.
If you want to undo a commit other than the latest on a branch,
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
-------
--mixed::
Expand All @@ -37,9 +43,9 @@ OPTIONS
--hard::
Matches the working tree and index to that of the tree being
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.

Examples
Expand Down

0 comments on commit 6934dec

Please sign in to comment.