Git的master没有了:default branch is set to “refs/heads/master” but does not exist. Contact your
问题:default branch is set to “refs/heads/master” but does not exist. Contact your project administrator to change the default
The default branch is set to "refs/heads/master" but does not exist. Contact your project administrator to change the default branch.
问题描述:在Git中由于误操作把master分支给删掉了。当提交代码时会发现没有master,且提示上边的问题信息。
解决方法:
首先需要有管理权限,然后根据下面的步骤操作:
1)Settings-->General-->general project settings-->Expand
2)Default Branch-->Change your project default branch
3)Save changes
最后,去分支中去查看。
Git的master没有了:default branch is set to “refs/heads/master” but does not exist. Contact your
问题:default branch is set to “refs/heads/master” but does not exist. Contact your project administrator to change the default
The default branch is set to "refs/heads/master" but does not exist. Contact your project administrator to change the default branch.
问题描述:在Git中由于误操作把master分支给删掉了。当提交代码时会发现没有master,且提示上边的问题信息。
解决方法:
首先需要有管理权限,然后根据下面的步骤操作:
1)Settings-->General-->general project settings-->Expand
2)Default Branch-->Change your project default branch
3)Save changes
最后,去分支中去查看。