Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.
- From
Michal Suchánek <msuchanek@suse.de>
- Date
- Feb 1, 2021, 09:51 UTC
- Message-ID
- <20210201095143.GO6564@kitsune.suse.cz>
- 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