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角色亦可

相关推荐
小慧10243 小时前
1.2 git使用
git
m0_635647488 小时前
git管理github上的repository(二)
git·github
今夕节度使14 小时前
通过 VS Code 连接 GitLab 并上传项目
git·elasticsearch·gitlab
陈 洪 伟14 小时前
复习Git命令、Git命令使用流程、VSCode+Git插件管理工程源码
git
百锦再16 小时前
Git 使用大全:从入门到精通
git·version·版本·代码·分支·code·clone
中微子17 小时前
📝 终极Git Commit Message规范指南:写出专业级提交记录
git·github
溜达哥18 小时前
git commit 执行报错 sh: -/: invalid option
前端·javascript·git
brooknew19 小时前
从中科大镜像获取linux内核5.10.168的git方法
linux·git
刘白Live20 小时前
【Java】Git的一些常用命令
git·后端