Git development
 help / color / mirror / Atom feed
From: "Michal Suchánek" <msuchanek@suse.de>
To: 胡哲宁 <adlternative@gmail.com>
Cc: Hongyi Zhao <hongyi.zhao@gmail.com>, Git List <git@vger.kernel.org>
Subject: Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.
Date: Mon, 1 Feb 2021 10:51:43 +0100	[thread overview]
Message-ID: <20210201095143.GO6564@kitsune.suse.cz> (raw)
In-Reply-To: <CAOLTT8SsmzNNvQHaP3+vQmuq0fdRbFNL8ukOvPW5Zw9+nPk32Q@mail.gmail.com>

On Mon, Feb 01, 2021 at 01:56:55PM +0800, 胡哲宁 wrote:
> Hi,I don't think so unless you have the commit
>  in github or gitlab which include this file,
> maybe you can use git pull to get it.
How?

fetch/pull complains that the hashes are missing.

In this situation I just delete the repository but it is kind of stupid
that git rells you exactly what is wrong but won't fix it.

Thanks

Michal

  parent reply	other threads:[~2021-02-01  9:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01  2:14 Recover a git repo after accidentally deleting some hash files located under .git/objects Hongyi Zhao
2021-02-01  5:56 ` 胡哲宁
2021-02-01  7:01   ` Hongyi Zhao
2021-02-01  7:31     ` 胡哲宁
2021-02-01  9:51   ` Michal Suchánek [this message]
2021-02-01 10:02     ` 胡哲宁

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=20210201095143.GO6564@kitsune.suse.cz \
    --to=msuchanek@suse.de \
    --cc=adlternative@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=hongyi.zhao@gmail.com \
    /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