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

Re: panic recovery

From
Thomas Rast <trast@student.ethz.ch>
Date
Jan 16, 2011, 12:38 UTC
Message-ID
<201101161338.54423.trast@student.ethz.ch>
In-Reply-To
<AANLkTikBjWU_dm1a+2AQyP-bhdO_WtYJ8OdE7Zs3E=kV@mail.gmail.com>
Levend Sayar wrote:
> git am --abort
> 
> After that, we saw that all the sources she developed for two weeks
> are gone.

You can dig up the lost commits from the HEAD reflog after that, which records all movements of HEAD. See

  http://www.kernel.org/pub/software/scm/git/docs/git-reflog.html

The method you described is usually only applicable if you have truly unreachable objects, which happens e.g. if you lost some content that was once staged in the index but never committed.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Levend SayarNext: Thomas Rast
Message 2 of 4 in “panic recovery”
  1. Levend SayarJan 16, 2011
  2. Thomas RastJan 16, 2011
  3. Thomas RastJan 16, 2011
  4. Junio C HamanoJan 17, 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.