gitlab项目创建后项目组成员不能提交代码

提交报错如下:

git.exe push --progress "origin" main:main
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 294 bytes | 294.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: GitLab: You are not allowed to push code to protected branches on this project.
To http://140.246.67.17:18081/airfieldarea/app-source.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'http://140.246.67.17:18081/airfieldarea/app-source.git'

主要原因:

修改分支合并规则

 

 

 

posted @   lutt123  阅读(401)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
点击右上角即可分享
微信分享提示