git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* corrupted Git repository
@ 2011-06-21  6:58 Kasra Khosoussi
  2011-06-21  8:19 ` Michael J Gruber
  0 siblings, 1 reply; 11+ messages in thread
From: Kasra Khosoussi @ 2011-06-21  6:58 UTC (permalink / raw)
  To: git

Hi all,

My thesis repository is corrupted and I don't have any recent backup
(my files are OK, but the history is lost). I've seen the recovery
examples in the manual, but I believe my case is somehow different.
The repository is linear.

1- At the beginning, git status/log/fsck -full said:

> fatal: object 0a83757505387aacc2fd36b3c996729e6bf9d6e5 is corrupted

and there was an empty file in .git/objects/01/8375... .

2- If I move the corrupted object, git fsck --ful would return this:

> error: HEAD: invalid sha1 pointer 0a83757505387aacc2fd36b3c996729e6bf9d6e5
> error: refs/heads/master does not point to a valid object!
> dangling tree 06f388dc60cfb014b5e1f70ecdaa568efe6bd0fa
> dangling tree d86f8c75e836e13b6e0336361641223f48fde722

3- I guess I have to edit refs/heads/master and replace the corrupted
sha1 with another hash, but I'm not sure how I can find the proper
commit (e.g.,maybe by using find -mtime?).

Thanks in advance,

-Kasra

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

end of thread, other threads:[~2011-06-21 14:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21  6:58 corrupted Git repository Kasra Khosoussi
2011-06-21  8:19 ` Michael J Gruber
2011-06-21  9:30   ` Kasra Khosoussi
2011-06-21  9:38     ` Michael J Gruber
2011-06-21 10:10       ` Kasra Khosoussi
2011-06-21 10:39         ` Ilari Liusvaara
2011-06-21 10:40           ` Kasra Khosoussi
2011-06-21 13:47         ` Johannes Sixt
2011-06-21 14:26           ` Kasra Khosoussi
2011-06-21 14:32             ` Carlos Martín Nieto
2011-06-21 14:59               ` Kasra Khosoussi

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).