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

Re: Problems reverting (includes reverting a merge)

From
ABAlex Bennee <kernel-hacker@bennee.com>
Date
Jun 9, 2008, 09:00 UTC
Message-ID
<1213002019.26678.2.camel@pitcairn.cambridgebroadband.com>
In-Reply-To
<b1d95faa0806051045t67ea0f46r55cdaeb794dc2f5c@mail.gmail.com>
On Thu, 2008-06-05 at 10:45 -0700, jenny w wrote:
> What I'd really like to do is just zap the last 3 commits ... is there
> another way to just make things the way they were before these patches
> were applied?

Wouldn't git-reset --hard HEAD^^^ do what you want. It will rewind your tree to 3 commits bellow the current head, the --hard ensure your working tree is cleared out as well.

Show 6 quoted lines
> 
> Any help with any of the above would be greatly appreciated!
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-- 
Alex, homepage: http://www.bennee.com/~alex/
Envy is a pain of mind that successful men cause their neighbors. --
Onasander
Previous: Andreas Ericsson
Message 3 of 3 in “Problems reverting (includes reverting a merge)”
  1. jenny wJun 5, 2008
  2. Andreas EricssonJun 9, 2008
  3. Alex BenneeJun 9, 2008

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.