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