summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 53b3042)
raw | patch | inline | side by side (parent: 53b3042)
author | Thomas Rast <trast@student.ethz.ch> | |
Sun, 18 Jul 2010 18:23:22 +0000 (20:23 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 19 Jul 2010 15:11:04 +0000 (08:11 -0700) |
Reorder the documetation so that the soft/mixed/hard modes are in this
order. This way they form a natural progression towards changing more
of the state.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
order. This way they form a natural progression towards changing more
of the state.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-reset.txt | patch | blob | history |
index 645f0c17485d35e6696be950fc61f5fdcf3dd14e..dbb810d3a1b8e6e8152bea06b2c6ba998f4230ce 100644 (file)
SYNOPSIS
--------
[verse]
-'git reset' [--mixed | --soft | --hard | --merge | --keep] [-q] [<commit>]
+'git reset' [--soft | --mixed | --hard | --merge | --keep] [-q] [<commit>]
'git reset' [-q] [<commit>] [--] <paths>...
'git reset' --patch [<commit>] [--] [<paths>...]
OPTIONS
-------
---mixed::
- Resets the index but not the working tree (i.e., the changed files
- are preserved but not marked for commit) and reports what has not
- been updated. This is the default action.
-
--soft::
Does not touch the index file nor the working tree at all, but
requires them to be in a good order. This leaves all your changed
files "Changes to be committed", as 'git status' would
put it.
+--mixed::
+ Resets the index but not the working tree (i.e., the changed files
+ are preserved but not marked for commit) and reports what has not
+ been updated. This is the default action.
+
--hard::
Matches the working tree and index to that of the tree being
switched to. Any changes to tracked files in the working tree