博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git报错You are not allowed to force push code to a protected branch on this project
阅读量:6906 次
发布时间:2019-06-27

本文共 307 字,大约阅读时间需要 1 分钟。

当我们有时候回滚了代码,想强制push到远程仓库的时候,

git push origin --force

会报如下错误:

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

如果用的是gitlab版本库,这说明gitlab对仓库启用了保护,需要在仓库中设置一下:

"Settings" -> "Repository" -> scroll down to "Protected branches".

转载于:https://www.cnblogs.com/beileixinqing/p/10081786.html

你可能感兴趣的文章
How to use BTM as the transaction manager in Tomcat 6.x
查看>>
C# 模拟 Post
查看>>
【mat】learn matlab
查看>>
每天将MYSQL SLOW QUERY REPORT分发到各个邮箱供分析改善数据库性能-PYTHON
查看>>
Lazy Load, 延迟加载图片的 jQuery 插件
查看>>
Oracle宣布终止所有Intel Itanium平台上的软件开发
查看>>
SQL注入
查看>>
RMAN 增量备份 的 对象测试
查看>>
学习、证书-iOS开发心路历程-by小雨
查看>>
[WorldWind学习]10.插件结构
查看>>
拦截器权限控制使用Struts 拦截namespace进行权限控制-java教程
查看>>
判断数据集matlab 实现基本apriori算法
查看>>
BZOJ 1003([ZJOI2006]物流运输trans-SPFA+DP)
查看>>
Sharepoint学习笔记—习题系列--70-573习题解析 -(Q8-Q10)
查看>>
同时存在n个线程(n>5),需要写入或者读取一个名为test.txt的文件
查看>>
Android之MessageQueue、Looper、Handler与消息循环
查看>>
【Socket】linux黑客之网络嗅探底层原理
查看>>
Struts2.0 xml文件的配置(package,namespace,action)
查看>>
Comparing the MSTest and Nunit Frameworks
查看>>
C# 给枚举类型增加一个备注特性
查看>>