git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git message

From
Michele Ballabio <barra_cuda@katamail.com>
Date
Mar 11, 2008, 13:30 UTC
Message-ID
<200803111430.49927.barra_cuda@katamail.com>
In-Reply-To
<20080310144600.GA15556@roadking.ldev.net>
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
Previous: Mike Miller
Message 2 of 2 in “git message”
  1. Mike MillerMar 10, 2008
  2. Michele BallabioMar 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.