Re: how to undo a merge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Op 1-11-2011 8:27, Hong-Ming Su schreef:
The commit graph before merging is:
A--B<-master
  \  \
   \  \
C--D--E--F<- dev

git checkout master
git merge dev

The commit graph after merging is:
A--B
  \  \
   \  \
C--D--E--F<- dev<-master

master fast-forward to commit F.
I want to "undo" the merge. What shall I do?

git checkout master
git reset B

Vincent
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]