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
Date: Fri, 17 Dec 2010 16:22:02 -0500 [thread overview]
Message-ID: <20101217212201.GC11511@sigill.intra.peff.net> (raw)
In-Reply-To: <alpine.DEB.2.00.1012171218450.18272@asgard.lang.hm>
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
next prev parent reply other threads:[~2010-12-17 21:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-17 4:28 how to recover a repository david
2010-12-17 4:45 ` Jonathan Nieder
2010-12-17 20:20 ` david
2010-12-17 21:22 ` Jeff King [this message]
2010-12-17 22:30 ` david
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101217212201.GC11511@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=david@lang.hm \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).