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

相关推荐
一只积极向上的小咸鱼10 小时前
嵌套 Git 仓库 / gitlink / submodule 问题总结
大数据·git·elasticsearch
LuDvei10 小时前
git拉取报错问题
git
程序猿多布11 小时前
Fork操作笔记
git·fork
荪荪11 小时前
在本地建立git仓库
git
OYangxf12 小时前
Git Rollback, Reset and Restore的使用
git
AIMath~12 小时前
git管理代码仓库的工具
git
techdashen17 小时前
为 Agent 重新设计的 Git:Cloudflare Artifacts 是什么,怎么工作的
git
赖在沙发上的熊17 小时前
Git多仓库协作中和并冲突问题:“不相关历史合并”+“问跟踪文件冲突”
git
风若飞18 小时前
▎ 适用于完全没有 Git 经验的新手
git
时空自由民.20 小时前
git rebase简介
git