# git message

2 messages from 2008-03-10 to 2008-03-11. Participants: Mike Miller, Michele Ballabio.
Thread: https://gitlist.dev/t/12618

## Mike Miller, 2008-03-10 14:46

Subject: git message
Message-ID: <20080310144600.GA15556@roadking.ldev.net>
URL: https://gitlist.dev/e/20080310144600.GA15556%40roadking.ldev.net

```
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, 2008-03-11 13:30

Subject: Re: git message
Message-ID: <200803111430.49927.barra_cuda@katamail.com>
URL: https://gitlist.dev/e/200803111430.49927.barra_cuda%40katamail.com
In-Reply-To: <20080310144600.GA15556@roadking.ldev.net>

```
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

```
