
9 Mar
2010
9 Mar
'10
10:48 p.m.
On Sat, Mar 06, 2010 at 07:14:00PM -0500 or thereabouts, Vishvajit Singh wrote:
In fact, I've been thinking about MacGyver'ing Git a little.. I'd like a tool that can verify a Git repository, by which I mean go through all the objects in the repo and make sure they still match their SHA1 hashes. That way, if a cosmic ray somehow flips a bit on my hard drive, I can just restore the corrupted object from a backup.
I think you want git fsck --full? If there are corrupted objects it will display something like this: $ git fsck --full fatal: object 004c3f812a836736c0faf9c1763d9a9fdb8f7c9c is corrupted Hope this helps, Doug