On Monday, June 18, 2012 3:25:15 PM UTC+2, EricP wrote:
> Now, see if this repo is consistent when pulling from it... But seems like 
> there is something wrong
> $ cd ..
> $ mkdir tata
> $ cd tata
> $ git clone ../momo
> Cloning into 'momo'...
> done.
> warning: remote HEAD refers to nonexistent ref, unable to checkout.

Hi Eric, I didn't follow the rest of the thread, so I'm just responding to 
this last error message.

When you init the momo *bare* repo, by default the HEAD pointer in there 
points at refs/heads/master (see the file momo/HEAD). 

This implies that when momo is cloned, the "default" branch will be master. 
However, there is no branch with that name in momo, and therefore you get 
this error message.

You can still checkout either of the *2.1* or *2.2* branches in your momo 

If you want to assign a default branch when cloning from the momo bare 
repository, you can do it like this:

cd momo #the bare momo, not the clone
git symbolic-ref HEAD refs/heads/2.1

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to