Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752920Ab0F3HeG (ORCPT ); Wed, 30 Jun 2010 03:34:06 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:56216 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047Ab0F3HeC (ORCPT ); Wed, 30 Jun 2010 03:34:02 -0400 MIME-Version: 1.0 X-Originating-IP: [134.134.137.73] In-Reply-To: References: Date: Wed, 30 Jun 2010 15:34:01 +0800 Message-ID: Subject: Re: How to find a lost git commit? From: Lin Ming To: Po-Yu Chuang Cc: LKML Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 668 Lines: 19 On Wed, Jun 30, 2010 at 3:31 PM, Po-Yu Chuang wrote: > Hi Lin, > > 2010/6/30 Lin Ming : >> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/