且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在远程仓库中创建一个git符号引用

更新时间:2023-11-30 14:25:40

要在github中更改它,请转到管理部分。从下拉列表中选择默认分支。


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 one to change the HEAD?

Thanks in advance.

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