git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to recovery a corrupted git repo
@ 2011-02-21  7:50 Ping Yin
  2011-02-21  9:27 ` Christian Couder
  2011-02-21 10:04 ` Axel Freyn
  0 siblings, 2 replies; 8+ messages in thread
From: Ping Yin @ 2011-02-21  7:50 UTC (permalink / raw)
  To: git mailing list

I have a corrupted git repo, with "git fsck", it shows

missing blob b71eb55f2dbc97dafd4a769fc61f346e69a5e0af
missing blob 282035f3ae964e1e288f352c370be8edd11d3078
missing tree 3c20f556eecc476e3542cc522d46a62a4461fec6
missing blob f321b578edeb452358497e832815d6cae6b36886
missing commit 6d23f5084c975be637f7d748db82116bf84d3872

And i also have a good backup repo. How can i recover the corrupted
repo with the backup repo?

I can do a rsync or fresh "git clone", however, is there any git
related commands to incrementally do this?

btw, "git remote add and then git fetch" doesn't work, it reports

error: refs/heads/bringup does not point to a valid object!
error: refs/heads/fsl_imx_r9.3 does not point to a valid object!
error: refs/heads/bringup does not point to a valid object!
error: refs/heads/fsl_imx_r9.3 does not point to a valid object!
error: refs/heads/bringup does not point to a valid object!
error: refs/heads/fsl_imx_r9.3 does not point to a valid object!
error: refs/heads/bringup does not point to a valid object!
error: refs/heads/fsl_imx_r9.3 does not point to a valid object!
error: missing object referenced by 'refs/tags/v2.6.32'
error: missing object referenced by 'refs/tags/v2.6.32-rc1'
error: missing object referenced by 'refs/tags/v2.6.32-rc2'

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

end of thread, other threads:[~2011-02-22  3:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-21  7:50 How to recovery a corrupted git repo Ping Yin
2011-02-21  9:27 ` Christian Couder
2011-02-21 10:04 ` Axel Freyn
2011-02-21 10:11   ` Ping Yin
2011-02-21 14:51   ` Matthieu Moy
2011-02-21 15:03     ` Ping Yin
2011-02-21 15:31       ` Matthieu Moy
2011-02-22  3:16         ` Ping Yin

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