完整报错 在使用-f强推时报错: remote: GitLab: You are not allowed to force push code to a protected branch on this project. 解决方法 设置界面中,Settings->Reporsitory,查看选项卡Protected branches 把Allowed to force push这个选项打开,然后就可以了