From: "Shawn O. Pearce" <spearce@spearce.org>
To: Shameem Ahamed <shameem.ahamed@yahoo.com>
Cc: git@vger.kernel.org
Subject: Re: error while cloning a remote repository
Date: Fri, 13 Nov 2009 07:10:24 -0800 [thread overview]
Message-ID: <20091113151024.GR11919@spearce.org> (raw)
In-Reply-To: <811075.82054.qm@web94704.mail.in2.yahoo.com>
Shameem Ahamed <shameem.ahamed@yahoo.com> wrote:
> I ran in to a warning message while cloning a remote repository.
...
> warning: remote HEAD refers to nonexistent ref, unable to checkout.
>
Contact the repository owner and let them know. The error occurs because
their HEAD symbolic reference points to a branch that does not exist. They
can fix this by running `git symbolic-ref HEAD refs/heads/$branch` to point
at the correct default branch for their repository.
> After the cloning i couldn't see any remote files. The .git folder
> is created successfully.
I think you may be able to do:
$ git branch -r
$ git reset --hard $branch
where $branch is one of the origin/ names printed by branch -r.
Because the source repository didn't tell us what default branch name
you should use (it has a bad HEAD) I can't suggest what name, you'll
have to figure it out on your own, or ask the repository owner.
--
Shawn.
prev parent reply other threads:[~2009-11-13 15:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 6:38 error while cloning a remote repository Shameem Ahamed
2009-11-13 15:10 ` Shawn O. Pearce [this message]
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=20091113151024.GR11919@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=shameem.ahamed@yahoo.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).