From: Alex Riesen Date: Wed, 05 Jul 2006 17:29:07 GMT Subject: Re: git reset --hard include/linux/config.h Message-ID: <81b0412b0607051029q175928faq113b81de8c11db30@mail.gmail.com> In-Reply-To: <20060705171406.GA17834@mars.ravnborg.org> On 7/5/06, Sam Ravnborg wrote: > On Wed, Jul 05, 2006 at 07:05:27PM +0200, Alex Riesen wrote: > > On 7/5/06, Sam Ravnborg wrote: > > >Also what is the right command to bring back a file to the original > > >state after doing some modifications that was not needed anyway? > > > > git checkout HEAD include/linux/config.h > > Thanks! > > By the way - the modifications to include/linux/config.h was not lost. > But git apperantly managed to be fooled to think the file was > up-to-date. After that checkout or after reset --hard? Both is quiet unusual, though