Documentation: improve description of "git reset --keep"
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -53,9 +53,12 @@ OPTIONS
|
|||||||
and the current commit in the working tree.
|
and the current commit in the working tree.
|
||||||
|
|
||||||
--keep::
|
--keep::
|
||||||
Resets the index to match the tree recorded by the named commit,
|
Reset the index to the given commit, keeping local changes in
|
||||||
but keep changes in the working tree. Aborts if the reset would
|
the working tree since the current commit, while updating
|
||||||
change files that are already modified in the working tree.
|
working tree files without local changes to what appears in
|
||||||
|
the given commit. If a file that is different between the
|
||||||
|
current commit and the given commit has local changes, reset
|
||||||
|
is aborted.
|
||||||
|
|
||||||
-p::
|
-p::
|
||||||
--patch::
|
--patch::
|
||||||
|
Reference in New Issue
Block a user