tags:

views:

428

answers:

2

In my remote bare repository the HEAD is pointing to "refs/heads/master" and I want it to point to "refs/heads/other".

I am not able to go to remote repository directory and run git symbolic-ref. Is there any git command to achieve it? Or any other way?

If there is no way, does Github allow to change the HEAD?

Thanks in advance.

+4  A: 

To change it in github, go to the admin section.
You can select the default branch from a dropdown there.

null
Hmmmm... the existence of that drop-down is a strong indicator that there's no way to do it purely using Git commands.
kbro
+1  A: 

There has been posted another question asking basically the same: How do I change a Git remote HEAD to point to something besides “master”, and there was more discussion there, with a reference to the Github group. So I'd just like to point anyone to that discussion as well.

imz