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

Re: Reverting to old commit

From
Paolo Bonzini <bonzini@gnu.org>
Date
May 27, 2008, 20:17 UTC
Message-ID
<483C6C44.1010304@gnu.org>
In-Reply-To
<483C68E5.1040408@dirk.my1.cc>
> Then gitk's "reset ... branch to here" could help you. Right-click
> the desired commit and reset the branch.
DON'T do this though if you have published the branch somewhere.

Do "git-revert -n" on all the commits after the buggy one in that case, starting from the last, then "git commit".

Paolo
Previous: Dirk SüsserottNext: Robin Rosenberg
Message 7 of 8 in “Reverting to old commit”
  1. MarcusMay 27, 2008
  2. Jakub NarebskiMay 27, 2008
  3. Brandon CaseyMay 27, 2008
  4. Sverre RabbelierMay 27, 2008
  5. Sverre RabbelierMay 27, 2008
  6. Dirk SüsserottMay 27, 2008
  7. Paolo BonziniMay 27, 2008
  8. Robin RosenbergMay 27, 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.