Re: git message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux