Fix GitLab error: “you are not allowed to push code to protected branches on this project”?

前端 未结 9 2098
野趣味
野趣味 2020-11-29 15:04

I have a problem when I push my codes to git while I have developer access in my project, but everything is okay when I have master access. Where is the problem come from? A

9条回答
  •  一个人的身影
    2020-11-29 15:45

    I have encountered this error on "an empty branch" on my local gitlab server. Some people mentioned that "you can not push for the first time on an empty branch". I tried to create a simple README file on the gitlab via my browser. Then everything fixed amazingly and the problem sorted out!! I mention that I was the master and the branch was not protected.

提交回复
热议问题