Re: How to find a lost git commit?

From: Lin Ming
Date: Wed Jun 30 2010 - 03:34:11 EST


On Wed, Jun 30, 2010 at 3:31 PM, Po-Yu Chuang <ratbert.chuang@xxxxxxxxx> wrote:
> Hi Lin,
>
> 2010/6/30 Lin Ming <lin@xxxxxxx>:
>> I wrote some patch and checked it in my local branch.
>> But by accident, I run "git reset --hard" to reset the git head to
>> some other commit.
>>
>> So now I can't find my patch because I don't know it's commit number.
> I guess git reflog is what you need.

Wow! That's it!

Many thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/