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

Re: git -- how to revert build to as-originally-cloned?

From
PVPhilippe Vaucher <philippe.vaucher@gmail.com>
Date
May 20, 2011, 14:42 UTC
Message-ID
<BANLkTi=nFf_6oULwqtC=--JBS9py3fvjwA@mail.gmail.com>
In-Reply-To
<4DD44DCD.7010508@hotmail.com>
> am stuck trying to revert a private kernel build back to the state in which I originally cloned it,
> (after probably doing the wrong thing  -  as below).     Hoping someone can advise.

I just wanted to add that usually when I "mess up" and want to revert to a previous state, I usually simply `git reflog`, find where I was before messing up, then `git reset --hard` to the desired SHA1.

Hope it helps, Philippe

Previous: John Lumby
Message 6 of 6 in “git -- how to revert build to as-originally-cloned?”
  1. John LumbyMay 18, 2011
  2. Tim MazidMay 18, 2011
  3. John LumbyMay 19, 2011
  4. Tim MazidMay 20, 2011
  5. John LumbyMay 20, 2011
  6. Philippe VaucherMay 20, 2011

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.