Thread (3 messages) 3 messages, 3 authors, 2016-08-11

Re: git reset --soft a merged commit

flat view

From: Jakub Narebski <hidden>
Date: 2016-08-11 20:07:00

Nguyen Thai Ngoc Duy wrote:
I did "git reset --soft HEAD~1" where HEAD is a merged commit and
committed again (nothing changed).  The new commit was not recorded as
a merged commit. Is it intentional?
Yes, you have chosen to go back to 1st parent. The information about other
parents got lost.

If you want to correct commit, even if it is merge commit, use
  git commit --amend
instead.

Or you can muck with MERGE_HEAD instead.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help