git/list[1] front-page[2] threads[3] people[4] search[5] about
 

how to undo a merge

From
HSHong-Ming Su <halleyinvent@gmail.com>
Date
Nov 1, 2011, 07:27 UTC
Message-ID
<CANiMyiEoaxAO3XxJMWEXP-L7C_xkxU0_nyDaor+TsJr-Ch7ARw@mail.gmail.com>
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?

Thank you!

Best regards, Hong-Ming

Next: Vincent van Ravesteijn
Message 1 of 2 in “how to undo a merge”
  1. Hong-Ming SuNov 1, 2011
  2. Vincent van RavesteijnNov 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.