{"thread":{"id":"55081","subject":"Recover a git repo after accidentally deleting some hash files located under .git/objects.","startedAt":"2021-02-01T02:15:43Z","lastAt":"2021-02-01T10:02:02Z","messageCount":6,"participants":["Hongyi Zhao","胡哲宁","Michal Suchánek"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"415704","messageId":"CAGP6POKSOaaq0A-L2RgQ+R+bJVo-KuZChEOcCuO8jP+Cm9QFPw@mail.gmail.com","threadId":"55081","inReplyTo":null,"subject":"Recover a git repo after accidentally deleting some hash files located under .git/objects.","fromName":"Hongyi Zhao","fromEmail":"hongyi.zhao@gmail.com","sentAt":"2021-02-01T02:14:47Z","receivedAt":"2021-02-01T02:15:43Z","isPatch":false,"sender":{"key":"hongyi.zhao@gmail.com","avatar":null},"body":"Hi,\n\nI accidentally deleted some hash files located under the project's\n.git/objects subdirectory. In this case, can I resume the project?\n\nRegards\n-- \nAssoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\nTheory and Simulation of Materials\nHebei Polytechnic University of Science and Technology engineering\nNO. 552 North Gangtie Road, Xingtai, China\n"},{"id":"415708","messageId":"CAOLTT8SsmzNNvQHaP3+vQmuq0fdRbFNL8ukOvPW5Zw9+nPk32Q@mail.gmail.com","threadId":"55081","inReplyTo":"CAGP6POKSOaaq0A-L2RgQ+R+bJVo-KuZChEOcCuO8jP+Cm9QFPw@mail.gmail.com","subject":"Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.","fromName":"胡哲宁","fromEmail":"adlternative@gmail.com","sentAt":"2021-02-01T05:56:55Z","receivedAt":"2021-02-01T06:06:08Z","isPatch":false,"sender":{"key":"adlternative@gmail.com","avatar":"https://avatars.githubusercontent.com/u/58138461?v=4"},"body":"Hi，I don't think so unless you have the commit\n in github or gitlab which include this file，\nmaybe you can use git pull to get it.\nBy the way ,you can ask questions in irc chatroom #git or #git-devel.\nThere will be a good place to get help.\n--\nadlternative\n\nHongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 上午10:16写道：\n>\n> Hi,\n>\n> I accidentally deleted some hash files located under the project's\n> .git/objects subdirectory. In this case, can I resume the project?\n>\n> Regards\n> --\n> Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\n> Theory and Simulation of Materials\n> Hebei Polytechnic University of Science and Technology engineering\n> NO. 552 North Gangtie Road, Xingtai, China\n"},{"id":"415723","messageId":"CAGP6POKB1b=gCjd-rNCYrJKcp8bmRP_cpwAPi81udh61ZdZJzA@mail.gmail.com","threadId":"55081","inReplyTo":"CAOLTT8SsmzNNvQHaP3+vQmuq0fdRbFNL8ukOvPW5Zw9+nPk32Q@mail.gmail.com","subject":"Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.","fromName":"Hongyi Zhao","fromEmail":"hongyi.zhao@gmail.com","sentAt":"2021-02-01T07:01:24Z","receivedAt":"2021-02-01T07:05:41Z","isPatch":false,"sender":{"key":"hongyi.zhao@gmail.com","avatar":null},"body":"On Mon, Feb 1, 2021 at 1:54 PM 胡哲宁 <adlternative@gmail.com> wrote:\n>\n> Hi，I don't think so unless you have the commit\n>  in github or gitlab which include this file，\n> maybe you can use git pull to get it.\n> By the way ,you can ask questions in irc chatroom #git or #git-devel.\n> There will be a good place to get help.\n\nThanks a lot for your suggestion. BTW, what's IRC client and server\nused by you normally?\n\n> --\n> adlternative\n>\n> Hongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 上午10:16写道：\n> >\n> > Hi,\n> >\n> > I accidentally deleted some hash files located under the project's\n> > .git/objects subdirectory. In this case, can I resume the project?\n> >\n> > Regards\n> > --\n> > Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\n> > Theory and Simulation of Materials\n> > Hebei Polytechnic University of Science and Technology engineering\n> > NO. 552 North Gangtie Road, Xingtai, China\n\n\n\n-- \nAssoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\nTheory and Simulation of Materials\nHebei Polytechnic University of Science and Technology engineering\nNO. 552 North Gangtie Road, Xingtai, China\n"},{"id":"415726","messageId":"CAOLTT8ScAgJFo8UxzXvVCX7ojk5fpc6eYxuUg-gJr=--LOzujw@mail.gmail.com","threadId":"55081","inReplyTo":"CAGP6POKB1b=gCjd-rNCYrJKcp8bmRP_cpwAPi81udh61ZdZJzA@mail.gmail.com","subject":"Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.","fromName":"胡哲宁","fromEmail":"adlternative@gmail.com","sentAt":"2021-02-01T07:31:22Z","receivedAt":"2021-02-01T07:30:19Z","isPatch":false,"sender":{"key":"adlternative@gmail.com","avatar":"https://avatars.githubusercontent.com/u/58138461?v=4"},"body":"oh,I am using Konversation,it's a good irc client.\nYou can also use weechat in terminal.\nAnd http://quhno.internetstrahlen.de/Vivaldi/freenode-help.html\nmay have many helpful usages for you to learn irc command.\n\n说句中文活跃下气氛 :）\n\nHongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 下午3:01写道：\n>\n> On Mon, Feb 1, 2021 at 1:54 PM 胡哲宁 <adlternative@gmail.com> wrote:\n> >\n> > Hi，I don't think so unless you have the commit\n> >  in github or gitlab which include this file，\n> > maybe you can use git pull to get it.\n> > By the way ,you can ask questions in irc chatroom #git or #git-devel.\n> > There will be a good place to get help.\n>\n> Thanks a lot for your suggestion. BTW, what's IRC client and server\n> used by you normally?\n>\n> > --\n> > adlternative\n> >\n> > Hongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 上午10:16写道：\n> > >\n> > > Hi,\n> > >\n> > > I accidentally deleted some hash files located under the project's\n> > > .git/objects subdirectory. In this case, can I resume the project?\n> > >\n> > > Regards\n> > > --\n> > > Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\n> > > Theory and Simulation of Materials\n> > > Hebei Polytechnic University of Science and Technology engineering\n> > > NO. 552 North Gangtie Road, Xingtai, China\n>\n>\n>\n> --\n> Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\n> Theory and Simulation of Materials\n> Hebei Polytechnic University of Science and Technology engineering\n> NO. 552 North Gangtie Road, Xingtai, China\n"},{"id":"415727","messageId":"20210201095143.GO6564@kitsune.suse.cz","threadId":"55081","inReplyTo":"CAOLTT8SsmzNNvQHaP3+vQmuq0fdRbFNL8ukOvPW5Zw9+nPk32Q@mail.gmail.com","subject":"Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.","fromName":"Michal Suchánek","fromEmail":"msuchanek@suse.de","sentAt":"2021-02-01T09:51:43Z","receivedAt":"2021-02-01T09:53:01Z","isPatch":false,"sender":{"key":"msuchanek@suse.de","avatar":"https://avatars.githubusercontent.com/u/787652?v=4"},"body":"On Mon, Feb 01, 2021 at 01:56:55PM +0800, 胡哲宁 wrote:\n> Hi，I don't think so unless you have the commit\n>  in github or gitlab which include this file，\n> maybe you can use git pull to get it.\nHow?\n\nfetch/pull complains that the hashes are missing.\n\nIn this situation I just delete the repository but it is kind of stupid\nthat git rells you exactly what is wrong but won't fix it.\n\nThanks\n\nMichal\n"},{"id":"415728","messageId":"CAOLTT8TPucR2PRUqE1C9a+vB_-vw=4caycwPixzmJTkkOKpXRw@mail.gmail.com","threadId":"55081","inReplyTo":"20210201095143.GO6564@kitsune.suse.cz","subject":"Re: Recover a git repo after accidentally deleting some hash files located under .git/objects.","fromName":"胡哲宁","fromEmail":"adlternative@gmail.com","sentAt":"2021-02-01T10:02:44Z","receivedAt":"2021-02-01T10:02:02Z","isPatch":false,"sender":{"key":"adlternative@gmail.com","avatar":"https://avatars.githubusercontent.com/u/58138461?v=4"},"body":"Michal Suchánek <msuchanek@suse.de> 于2021年2月1日周一 下午5:51写道：\n>\n> On Mon, Feb 01, 2021 at 01:56:55PM +0800, 胡哲宁 wrote:\n> > Hi，I don't think so unless you have the commit\n> >  in github or gitlab which include this file，\n> > maybe you can use git pull to get it.\n> How?\n>\n> fetch/pull complains that the hashes are missing.\n>\n> In this situation I just delete the repository but it is kind of stupid\n> that git rells you exactly what is wrong but won't fix it.\n>\nIs it so? I thought it would work normally, and I hope git can fix it one day.\nThanks.\n\nZheNing Hu\n\n> Thanks\n>\n> Michal\n"}]}