git message

Previous thread: [PATCH] update 'git rebase' documentation by SZEDER Gábor on Monday, March 10, 2008 - 7:38 am. (1 message)

Next thread: none
From: Mike Miller
Subject: git message
Date: Monday, March 10, 2008 - 7:46 am

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

From: Michele Ballabio
Date: Tuesday, March 11, 2008 - 6:30 am

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 thread: [PATCH] update 'git rebase' documentation by SZEDER Gábor on Monday, March 10, 2008 - 7:38 am. (1 message)

Next thread: none