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