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

Re: how do i revert to a previous version, keeping the history

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Apr 2, 2008, 06:57 UTC
Message-ID
<47F32E66.1010705@viscovery.net>
In-Reply-To
<47F32CBE.2040305@tikalk.com>
Ittay Dror schrieb:
> I have this revision history: A-B
> I want to go back to the code in A, but keep B in the history: A-B-A
> 
> How do I do that?
git revert HEAD
-- Hannes
Previous: Ittay DrorNext: Junio C Hamano
Message 2 of 3 in “how do i revert to a previous version, keeping the history”
  1. Ittay DrorApr 2, 2008
  2. Johannes SixtApr 2, 2008
  3. Junio C HamanoApr 2, 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.