git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to recover from "reset --hard"
@ 2009-08-22  2:53 Ping Yin
  2009-08-22  6:06 ` Ping Yin
  0 siblings, 1 reply; 2+ messages in thread
From: Ping Yin @ 2009-08-22  2:53 UTC (permalink / raw)
  To: git mailing list

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 ?

Ping Yin

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

* Re: How to recover from "reset --hard"
  2009-08-22  2:53 How to recover from "reset --hard" Ping Yin
@ 2009-08-22  6:06 ` Ping Yin
  0 siblings, 0 replies; 2+ messages in thread
From: Ping Yin @ 2009-08-22  6:06 UTC (permalink / raw)
  To: git mailing list

On Sat, Aug 22, 2009 at 10:53 AM, Ping Yin<pkufranky@gmail.com> wrote:
> 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.

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

end of thread, other threads:[~2009-08-22  6:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-22  2:53 How to recover from "reset --hard" Ping Yin
2009-08-22  6:06 ` Ping Yin

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 NNTP newsgroup(s).