* error while cloning a remote repository
@ 2009-11-13 6:38 Shameem Ahamed
2009-11-13 15:10 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Shameem Ahamed @ 2009-11-13 6:38 UTC (permalink / raw)
To: git
Hi,
I ran in to a warning message while cloning a remote repository.
The message is
warning: remote HEAD refers to nonexistent ref, unable to checkout.
After the cloning i couldn't see any remote files. The .git folder is created successfully.
Regards,
Shameem
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: error while cloning a remote repository
2009-11-13 6:38 error while cloning a remote repository Shameem Ahamed
@ 2009-11-13 15:10 ` Shawn O. Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2009-11-13 15:10 UTC (permalink / raw)
To: Shameem Ahamed; +Cc: git
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-13 15:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-13 6:38 error while cloning a remote repository Shameem Ahamed
2009-11-13 15:10 ` Shawn O. Pearce
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).