git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ping Yin <pkufranky@gmail.com>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: git mailing list <git@vger.kernel.org>
Subject: Re: How to recovery a corrupted git repo
Date: Mon, 21 Feb 2011 23:03:55 +0800	[thread overview]
Message-ID: <AANLkTim-O+LR_r=N6y7Dcip8xQGcBVP2FiVhu22Zhysf@mail.gmail.com> (raw)
In-Reply-To: <vpqpqql1lw6.fsf@bauges.imag.fr>

On Mon, Feb 21, 2011 at 10:51 PM, Matthieu Moy
<Matthieu.Moy@grenoble-inp.fr> wrote:
> Axel Freyn <axel-freyn@gmx.de> 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.

  reply	other threads:[~2011-02-21 15:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-02-21 15:31       ` Matthieu Moy
2011-02-22  3:16         ` Ping Yin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTim-O+LR_r=N6y7Dcip8xQGcBVP2FiVhu22Zhysf@mail.gmail.com' \
    --to=pkufranky@gmail.com \
    --cc=Matthieu.Moy@grenoble-inp.fr \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).