{"thread":{"id":"20694","subject":"How to recover from \"reset --hard\"","startedAt":"2009-08-22T02:53:23Z","lastAt":"2009-08-22T06:06:42Z","messageCount":2,"participants":["Ping Yin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"121485","messageId":"46dff0320908211953u2f63cdb4m9cab863266a03df7@mail.gmail.com","threadId":"20694","inReplyTo":null,"subject":"How to recover from \"reset --hard\"","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2009-08-22T02:53:23Z","receivedAt":"2009-08-22T02:53:23Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"After adding a file to index, i do a \"reset --hard\", then how do i\nrecovery the file?\n\nI want write all lost files to a directory and find it according to\nthe file size.\n\nDoes \"git fsck --lost-found\" write this file to .git\\lost-found\\other ?\n\nPing Yin\n"},{"id":"121504","messageId":"46dff0320908212306v6b4aec03g761e1ee9035462c4@mail.gmail.com","threadId":"20694","inReplyTo":"46dff0320908211953u2f63cdb4m9cab863266a03df7@mail.gmail.com","subject":"Re: How to recover from \"reset --hard\"","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2009-08-22T06:06:42Z","receivedAt":"2009-08-22T06:06:42Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On Sat, Aug 22, 2009 at 10:53 AM, Ping Yin<pkufranky@gmail.com> wrote:\n> After adding a file to index, i do a \"reset --hard\", then how do i\n> recovery the file?\n>\n> I want write all lost files to a directory and find it according to\n> the file size.\n>\n> Does \"git fsck --lost-found\" write this file to .git\\lost-found\\other ?\n\nIt does. I just remembered the wrong size of the file. Sorry for the noise.\n"}]}