Thread (1 message) 1 message, 1 author, 2016-06-15

Re: How to recover a lost commit...

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:01

Patrick Doyle [off-list ref] writes:
$ git merge --no-commit
$ git reset

Why is that "git reset" benign, when the "git reset HEAD^" wasn't benign before?
The former is resetting the index to HEAD (your latest commit), while the
latter is resetting the index to HEAD^ (the one before that, discarding
your latest commit), no?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help