On Thursday, December 20, 2012 11:57:17 PM UTC+1, dmprantz wrote:

> Quick update on the nonexistent reg issue.  Removing the depth flag didn't 
> resolve the issue, just delayed it.  The full output is this:
> C:\git>git clone file:////server/git/Pushed.git Pushed
> Cloning into 'Pushed'...
> remote: Counting objects: 90813, done.
> remote: Compressing objects: 100% (22899/22899), done.
> Receiving objects: 100% (90813/90813), 474.65 MiB | 353 KiB/s, done.
> emote: Total 90813 (delta 66440), reused 90813 (delta 66440)
> Resolving deltas: 100% (66440/66440), done.
> warning: remote HEAD refers to nonexistent ref, unable to checkout.
This is not an error, it's just a warning that says Git doesn't know which 
branch you want in your clone's work-tree, aka. default branch.

You can configure a default branch in the upstream/bare repository like 

git symbolic-ref HEAD refs/heads/mybranch

To "fix" your already cloned repository, just check out one of the remote 

git branch -a # pick a branch from these
git checkout --track origin/mybranch


Reply via email to