git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Recover a git repo after accidentally deleting some hash files located under .git/objects.
@ 2021-02-01  2:14 Hongyi Zhao
  2021-02-01  5:56 ` 胡哲宁
  0 siblings, 1 reply; 6+ messages in thread
From: Hongyi Zhao @ 2021-02-01  2:14 UTC (permalink / raw)
  To: git

Hi,

I accidentally deleted some hash files located under the project's
.git/objects subdirectory. In this case, can I resume the project?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.
  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  9:51   ` Michal Suchánek
  0 siblings, 2 replies; 6+ messages in thread
From: 胡哲宁 @ 2021-02-01  5:56 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Git List

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.
By the way ,you can ask questions in irc chatroom #git or #git-devel.
There will be a good place to get help.
--
adlternative

Hongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 上午10:16写道:
>
> Hi,
>
> I accidentally deleted some hash files located under the project's
> .git/objects subdirectory. In this case, can I resume the project?
>
> Regards
> --
> Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
> Theory and Simulation of Materials
> Hebei Polytechnic University of Science and Technology engineering
> NO. 552 North Gangtie Road, Xingtai, China

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Hongyi Zhao @ 2021-02-01  7:01 UTC (permalink / raw)
  To: 胡哲宁; +Cc: Git List

On Mon, Feb 1, 2021 at 1:54 PM 胡哲宁 <adlternative@gmail.com> 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.
> By the way ,you can ask questions in irc chatroom #git or #git-devel.
> There will be a good place to get help.

Thanks a lot for your suggestion. BTW, what's IRC client and server
used by you normally?

> --
> adlternative
>
> Hongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 上午10:16写道:
> >
> > Hi,
> >
> > I accidentally deleted some hash files located under the project's
> > .git/objects subdirectory. In this case, can I resume the project?
> >
> > Regards
> > --
> > Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
> > Theory and Simulation of Materials
> > Hebei Polytechnic University of Science and Technology engineering
> > NO. 552 North Gangtie Road, Xingtai, China



-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.
  2021-02-01  7:01   ` Hongyi Zhao
@ 2021-02-01  7:31     ` 胡哲宁
  0 siblings, 0 replies; 6+ messages in thread
From: 胡哲宁 @ 2021-02-01  7:31 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Git List

oh,I am using Konversation,it's a good irc client.
You can also use weechat in terminal.
And http://quhno.internetstrahlen.de/Vivaldi/freenode-help.html
may have many helpful usages for you to learn irc command.

说句中文活跃下气氛 :)

Hongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 下午3:01写道:
>
> On Mon, Feb 1, 2021 at 1:54 PM 胡哲宁 <adlternative@gmail.com> 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.
> > By the way ,you can ask questions in irc chatroom #git or #git-devel.
> > There will be a good place to get help.
>
> Thanks a lot for your suggestion. BTW, what's IRC client and server
> used by you normally?
>
> > --
> > adlternative
> >
> > Hongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 上午10:16写道:
> > >
> > > Hi,
> > >
> > > I accidentally deleted some hash files located under the project's
> > > .git/objects subdirectory. In this case, can I resume the project?
> > >
> > > Regards
> > > --
> > > Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
> > > Theory and Simulation of Materials
> > > Hebei Polytechnic University of Science and Technology engineering
> > > NO. 552 North Gangtie Road, Xingtai, China
>
>
>
> --
> Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
> Theory and Simulation of Materials
> Hebei Polytechnic University of Science and Technology engineering
> NO. 552 North Gangtie Road, Xingtai, China

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.
  2021-02-01  5:56 ` 胡哲宁
  2021-02-01  7:01   ` Hongyi Zhao
@ 2021-02-01  9:51   ` Michal Suchánek
  2021-02-01 10:02     ` 胡哲宁
  1 sibling, 1 reply; 6+ messages in thread
From: Michal Suchánek @ 2021-02-01  9:51 UTC (permalink / raw)
  To: 胡哲宁; +Cc: Hongyi Zhao, Git List

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.
  2021-02-01  9:51   ` Michal Suchánek
@ 2021-02-01 10:02     ` 胡哲宁
  0 siblings, 0 replies; 6+ messages in thread
From: 胡哲宁 @ 2021-02-01 10:02 UTC (permalink / raw)
  To: Michal Suchánek; +Cc: Hongyi Zhao, Git List

Michal Suchánek <msuchanek@suse.de> 于2021年2月1日周一 下午5:51写道:
>
> 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.
>
Is it so? I thought it would work normally, and I hope git can fix it one day.
Thanks.

ZheNing Hu

> Thanks
>
> Michal

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-01 10:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-02-01 10:02     ` 胡哲宁

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).