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

Re: Reverting to old commit

From
Jakub Narebski <jnareb@gmail.com>
Date
May 27, 2008, 18:09 UTC
Message-ID
<m3bq2r39gh.fsf@localhost.localdomain>
In-Reply-To
<8345bd80805271050q7412917bt292a276fbbe6aed3@mail.gmail.com>
Marcus <prima@wordit.com> writes:
Show 8 quoted lines
> Newbie question: What's the simplest way to find an old commit and revert?
> 
> Say you have a version from yesterday which worked and today's
> experiments failed, so you want to go back to that working version.
> Unfortunately, it's not tagged. Instead you need to actually view the
> code to identify the version you want. I thought maybe gitk might
> help, but I can't find my way with gitk. I hoped you could browse
> revisions easier in a GUI and tell gitk or git-gui to revert?
Errr... isn't it what git-bisect is for?
If it is not, viewing git-log, or git-reflog output should help...
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: MarcusNext: Brandon Casey
Message 2 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.