git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to recover from "reset --hard"

From
Ping Yin <pkufranky@gmail.com>
Date
Aug 22, 2009, 06:06 UTC
Message-ID
<46dff0320908212306v6b4aec03g761e1ee9035462c4@mail.gmail.com>
In-Reply-To
<46dff0320908211953u2f63cdb4m9cab863266a03df7@mail.gmail.com>
On Sat, Aug 22, 2009 at 10:53 AM, Ping Yin<pkufranky@gmail.com> wrote:
Show 7 quoted lines
> After adding a file to index, i do a "reset --hard", then how do i
> recovery the file?
>
> I want write all lost files to a directory and find it according to
> the file size.
>
> Does "git fsck --lost-found" write this file to .git\lost-found\other ?
It does. I just remembered the wrong size of the file. Sorry for the noise.
Previous: Ping Yin
Message 2 of 2 in “How to recover from "reset --hard"”
  1. Ping YinAug 22, 2009
  2. Ping YinAug 22, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.