]>
Commit | Line | Data |
---|---|---|
215a7ad1 JH |
1 | git-reset(1) |
2 | ============ | |
7fc9d69f JH |
3 | |
4 | NAME | |
5 | ---- | |
215a7ad1 | 6 | git-reset - Reset current HEAD to the specified state. |
7fc9d69f JH |
7 | |
8 | SYNOPSIS | |
9 | -------- | |
215a7ad1 | 10 | 'git-reset' [--mixed | --soft | --hard] [<commit-ish>] |
7fc9d69f JH |
11 | |
12 | DESCRIPTION | |
13 | ----------- | |
f67545ea LAS |
14 | Sets the current head to the specified commit and optionally resets the |
15 | index and working tree to match. | |
7fc9d69f JH |
16 | |
17 | OPTIONS | |
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 | |
34 | Author | |
35 | ------ | |
36 | Written by Junio C Hamano <junkio@cox.net> and Linus Torvalds <torvalds@osdl.org> | |
37 | ||
38 | Documentation | |
39 | -------------- | |
40 | Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>. | |
41 | ||
42 | GIT | |
43 | --- | |
a7154e91 | 44 | Part of the gitlink:git[7] suite |
7fc9d69f | 45 |