git权限不够:Ask a project Owner or Maintainer to create a default branch

新仓库还未创建任何分支时,Developer角色时首次提交代码,抛如下异常

remote: GitLab:

remote: A default branch (e.g. master) does not yet exist for galaxy/apache-jspf-project

remote: Ask a project Owner or Maintainer to create a default branch:

remote:

remote: http://192.168.8.9/galaxy/spf-project/-/project_members

remote:

error: failed to push some refs to 'http://192.168.8.9/galaxy/spf-project.git'

To http://192.168.8.9/galaxy/spf-project.git

! refs/heads/master:refs/heads/master [remote rejected] (pre-receive hook declined)

Done

无权限创建默认分支 ,解决办法有两个:

1.要管理员第一次推代码创建master分支。

2.把我改成Maintainer角色亦可

相关推荐
论迹1 小时前
【Git】-- Git安装 & 卸载(ubuntu)
git·ubuntu·elasticsearch
论迹2 小时前
【Git】-- Git基本操作
git·ubuntu
wxr06166 小时前
GIT学习
git·学习
猫头虎8 小时前
2026最新|GitHub 启用双因素身份验证 2FA 教程:TOTP.app 一键生成动态验证码(新手小白图文实操)
git·开源·gitlab·github·开源软件·开源协议·gitcode
爱学英语的程序员9 小时前
让AI 帮我做了个个人博客(附提示词!)
人工智能·git·vue·github·node·个人博客
liu****10 小时前
git工具
git·python·算法·机器学习·计算机基础
wxr061611 小时前
git无法克隆
git
cooldream200913 小时前
Git 拒绝推送(Push Rejected)问题全解析与解决方案实战指南
git
wxr061613 小时前
GIT无法push
git·gitee
装不满的克莱因瓶15 小时前
【踩坑】IDEA提交Git .gitignore忽略文件不起作用
java·git·.gitignore·踩坑