git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* panic recovery
@ 2011-01-16 12:33 Levend Sayar
  2011-01-16 12:38 ` Thomas Rast
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Levend Sayar @ 2011-01-16 12:33 UTC (permalink / raw)
  To: git; +Cc: Eda Ercan

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_
(^_^)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-17 18:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-16 12:33 panic recovery Levend Sayar
2011-01-16 12:38 ` Thomas Rast
2011-01-16 13:11 ` Thomas Rast
2011-01-17 18:42 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).