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

Re: how to recover a repository

From
Ddavid@lang.hm <david@lang.hm>
Date
Dec 17, 2010, 22:30 UTC
Message-ID
<alpine.DEB.2.00.1012171430270.18272@asgard.lang.hm>
In-Reply-To
<20101217212201.GC11511@sigill.intra.peff.net>
thanks, that appears to have worked.
David Lang
On Fri, 17 Dec 2010, Jeff King wrote:
Show 17 quoted lines
> Date: Fri, 17 Dec 2010 16:22:02 -0500
> From: Jeff King <peff@peff.net>
> To: david@lang.hm
> Cc: Jonathan Nieder <jrnieder@gmail.com>, git@vger.kernel.org
> Subject: Re: how to recover a repository
> 
> On Fri, Dec 17, 2010 at 12:20:56PM -0800, david@lang.hm wrote:
>
>>> 3. git update-ref HEAD refs/heads/(branch you were on)
>>
>> I was on the default branch but if I do 'git update-ref HEAD
>> refs/heads/master' I get an error 'not a valid SHA1'
>
> That should be "git symbolic-ref HEAD refs/heads/master".
>
> -Peff
>
Previous: Jeff King
Message 5 of 5 in “how to recover a repository”
  1. david@lang.hmDec 17, 2010
  2. Jonathan NiederDec 17, 2010
  3. david@lang.hmDec 17, 2010
  4. Jeff KingDec 17, 2010
  5. david@lang.hmDec 17, 2010

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.