threads / discuss / 12618

git message

Subject: git message

## tl;dr

2 messages between Mar 10, 2008 and Mar 11, 2008.

replies: 1people: 2as markdown or json

Mike Miller· Mar 10, 2008, 14:46 UTC · lore

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

Michele Ballabio· Mar 11, 2008, 13:30 UTC · re: Mike Miller · lore

Re: git message

On Monday 10 March 2008, Mike Miller wrote:
Show 6 quoted lines
> 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

← back to recent threads