git报错You are not allowed to force push code to a protected branch on this project

当咱们有时候回滚了代码,想强制push到远程仓库的时候,git git push origin --force 会报以下错误:gitlab You are not allowed to force push code to a protected branch on this project 若是用的是gitlab版本库,这说明gitlab对仓库启用了保护,须要在仓库中设置一下:post "Set
相关文章
相关标签/搜索