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

Re: How do I undo a fast-forward merge safely?

From
Brent Goodrick <bgoodr@gmail.com>
Date
Feb 24, 2009, 05:37 UTC
Message-ID
<e38bce640902232137s622410cv4506b8e0083bb468@mail.gmail.com>
In-Reply-To
<m3fxi6s0vu.fsf@localhost.localdomain>
On Sun, Feb 22, 2009 at 11:54 AM, Jakub Narebski <jnareb@gmail.com> wrote:
Show 7 quoted lines
> > So, what operations, rebase, reset, etc, do I need to do to get this
> > repo back to where it was right before the fast-forward?
>
> Each 'large' operation sets ORIG_HEAD
>
>  $ git reset --hard ORIG_HEAD
>

Thanks Jakub. "git reset --hard ORIG_HEAD" was what I went with and it worked like a charm!

bg
Previous: Jakub Narebski
Message 3 of 3 in “How do I undo a fast-forward merge safely?”
  1. Brent GoodrickFeb 22, 2009
  2. Jakub NarebskiFeb 22, 2009
  3. Brent GoodrickFeb 24, 2009

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.