完整报错
在使用-f
强推时报错:
remote: GitLab: You are not allowed to force push code to a protected branch on this project.
解决方法
设置界面中,Settings
->Reporsitory
,查看选项卡Protected branches
文章来源:https://www.toymoban.com/news/detail-752505.html
把Allowed to force push
这个选项打开,然后就可以了文章来源地址https://www.toymoban.com/news/detail-752505.html
到了这里,关于解决Gitlab报错You are not allowed to force push code to a protected branch on this project.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!