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

panic recovery

From
Levend Sayar <levendsayar@gmail.com>
Date
Jan 16, 2011, 12:33 UTC
Message-ID
<AANLkTikBjWU_dm1a+2AQyP-bhdO_WtYJ8OdE7Zs3E=kV@mail.gmail.com>
Hi, all.

Yesterday one of my colleague tried to commit her two weeks of work. Nearly 10 source code files. After an unsuccessful am and apply commands, she tried rebase. And git bothered something like you have to finish your am first. Then I suggested to do

git am --abort

After that, we saw that all the sources she developed for two weeks are gone. We really got panic.But I know that git stores everthing as objects, namely commit,tree,blob and tag objects.

We sorted every file according to modification time under .git/objects directory and use "git show" for every single object. After a cumbersome work, we found blob objects for our source codes that we lost and commit objects. Namely we rescued her work.

Is there a better way to use in this kind of situations ?

For example, to list every single objects under objects directory according to their types ? Or search a phrase in every blob obejcts to find the source code we are looking for ?

_lvnd_ (^_^)

Next: Thomas Rast
Message 1 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.