git 推送报错

Enumerating objects: 33, done.
Counting objects: 100% (33/33), done.
Delta compression using up to 4 threads
Compressing objects: 100% (17/17), done.
Writing objects: 100% (17/17), 1.45 KiB | 744.00 KiB/s, done.
Total 17 (delta 13), reused 0 (delta 0)
POST git-receive-pack (1661 bytes)
remote: GitLab: You are not allowed to push code to protected branches on this project.

error: failed to push some refs to 'http:xxxxxxx'

git 未能顺利结束 (退出码 1) (24164 ms @ 2019/3/25 16:29:23)### 问题描述

阅读 5.7k
4 个回答

You are not allowed to push code to protected branches on this project.这句话不是说了嘛,禁止你推送代码到受保护的分支,说明你没权限啊。你可以再新开一个分支,然后在新的分支上修改,修改完成后push上去,让有权限的人进行merge

有master权限吗,一般作为developer,是没有master权限的

没有合并代码的权限

You are not allowed to push code to protected branches on this project.
写的很清楚,你没有权限推送到这个受保护的分支上。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进