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

来源:互联网 发布:汕头酒店美工招聘 编辑:程序博客网 时间:2024/05/16 20:29

这是今天遇到的一个使用SourceTree往Gitlab上提交代码的问题,错误提示:

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


这个上网搜了一下,但是结果都是说把被保护的分支取消保护就可以了,但是我的问题是我没有这个分支的权限,正确的是首先检查用户有没有这个分支的权限,在进行保护的判断。

0 0
原创粉丝点击