Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-15

Re: [PATCH] reset: update help text

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:50:58

On Fri, Apr 1, 2011 at 1:42 AM, Jonathan Nieder [off-list ref] wrote:
Nguyen Thai Ngoc Duy wrote:
quoted
To be honest, I have no idea what the above describes. I read 9bc454d
(reset: add option "--keep" to "git reset" - 2010-01-19) and figured
that --keep is like --merge except that "git diff" before and after
the reset is exactly the same, is it? I have never used --keep before.
I use "git reset --keep" to

 - discard a bad commit: git reset --keep HEAD^
 - start working against a different commit:

       git checkout -b topic &&
       ... hack hack hack without committing ... &&
       : "oops, I thought I was on master but I was somewhere else" &&
       git reset --keep master

..
Thanks. Your changes make sense to me now.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help