1 git-reset(1)
2 ============
4 NAME
5 ----
6 git-reset - Reset current HEAD to the specified state.
8 SYNOPSIS
9 --------
10 'git-reset' [--mixed | --soft | --hard] [<commit-ish>]
12 DESCRIPTION
13 -----------
14 Sets the current head to the specified commit and optionally resets the
15 index and working tree to match.
17 OPTIONS
18 -------
19 --mixed::
20 Like --soft but reports what has not been updated. This is the
21 default action.
23 --soft::
24 Does not touch the index file nor the working tree at all, but
25 requires them in a good order.
27 --hard::
28 Matches the working tree and index to that of the tree being
29 switched to.
31 <commit-ish>::
32 Commit to make the current HEAD.
34 Author
35 ------
36 Written by Junio C Hamano <junkio@cox.net> and Linus Torvalds <torvalds@osdl.org>
38 Documentation
39 --------------
40 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
42 GIT
43 ---
44 Part of the gitlink:git[7] suite