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 小时前
gitignore文件如何添加忽略文件或文件夹
git
灰色人生qwer1 小时前
git add . 添加超长文件名报错了怎么办?
git·python·elasticsearch
星海拾遗10 小时前
git rebase记录
大数据·git·elasticsearch
ljh57464911911 小时前
PhpStorm 2022.3 版本中,修改使用 Git 提交时看到弹出式的对话框模式
ide·git·php·phpstorm
云闲不收13 小时前
git rebase
git
江上清风山间明月13 小时前
git pull和git checkout在恢复文件的区别
git·pull·checkout
海鸥8114 小时前
in argocd ‘/tmp/_argocd-repo/../.git/index.lock‘: No space left on
git·argocd
尔嵘16 小时前
git操作
大数据·git·elasticsearch
好评12416 小时前
Linux文件上传git
linux·运维·git
大柏怎么被偷了18 小时前
【Git】企业级开发模型
git