remote: GitLab: You are not allowed to push code to protected branches on this project.

1、说明你没有权限,把代码推送到这个分支

1
2
3
4
5
6
7
8
9
10
11
warning: redirecting to http://xxxx.git/
Enumerating objects: 14, done.
Counting objects: 100% (14/14), done.
Delta compression using up to 12 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 2.36 KiB | 2.36 MiB/s, done.
Total 8 (delta 6), reused 0 (delta 0), pack-reused 0
remote: GitLab: You are not allowed to push code to protected branches on this project.
To http://xxxxx
! [remote rejected]   main -> main (pre-receive hook declined)
error: failed to push some refs to 'http://xxxxx'

 

解决方法:让项目管理给你开发合并的权限,就可以了

posted @   信铁寒胜  阅读(1293)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 写一个简单的SQL生成工具
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
历史上的今天:
2021-12-03 使用Log4j的步骤
点击右上角即可分享
微信分享提示