From: Ping Yin Date: Mon, 21 Feb 2011 15:03:55 GMT Subject: Re: How to recovery a corrupted git repo Message-ID: In-Reply-To: On Mon, Feb 21, 2011 at 10:51 PM, Matthieu Moy wrote: > Axel Freyn writes: > > There's also the brute-force approach > > rsync $good_repo/.git/objects/ $bad_repo/.git/objects/ > cd $bad_repo > git gc > > Notice the absence of --delete in the rsync command: I'm just adding > new files in the $bad_repo, not deleting any (since files with > identical names must have identical content). Thanks. This should be an applicable method. However, before rsyncing, the pack should be unpacked first.