git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git message
@ 2008-03-10 14:46 Mike Miller
  2008-03-11 13:30 ` Michele Ballabio
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Miller @ 2008-03-10 14:46 UTC (permalink / raw)
  To: git

I see some patches referring to this message but I don't understand what it
means:

Warning: Remote HEAD refers to nonexistent ref, unable to checkout.

Would someone please explain the message? Is my repository complete?

Thanks,
mikem

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git message
  2008-03-10 14:46 git message Mike Miller
@ 2008-03-11 13:30 ` Michele Ballabio
  0 siblings, 0 replies; 2+ messages in thread
From: Michele Ballabio @ 2008-03-11 13:30 UTC (permalink / raw)
  To: git; +Cc: Mike Miller

On Monday 10 March 2008, Mike Miller wrote:
> I see some patches referring to this message but I don't understand what it
> means:
> 
> Warning: Remote HEAD refers to nonexistent ref, unable to checkout.
> 
> Would someone please explain the message? Is my repository complete?

When you clone from a repository, git clone does a default checkout using
the branch referred to by HEAD. If HEAD does not exist on the remote repo,
git clone simply does not checkout any branch (but your local repo is ok).

At least that's what I understood from reading git-clone.sh.

You can see all the remote branches with

	git branch -a

and checkout a new local branch on top of them with

	git checkout -b local_branch remote_branch

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-11 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-10 14:46 git message Mike Miller
2008-03-11 13:30 ` Michele Ballabio

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).