git报错You are not allowed to force push code to a protected branch on this project
2023-09-14 09:07:44 时间
当我们有时候回滚了代码,想强制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".
相关文章
- 奇点已来,推进All on Serverless有哪些困难、如何破局?| 解读Serverless的2022
- ORA-27603: Cell storage I/O error, I/O failed on disk string at offset string for data length string ORACLE 报错 故障修复 远程处理
- ORA-28348: index defined on the specified column cannot be encrypted ORACLE 报错 故障修复 远程处理
- ORA-39178: cannot perform estimate on metadata only jobs ORACLE 报错 故障修复 远程处理
- MySQL连接查询:活学活用ON条件(mysql连接查询on)
- 微软对 Ubuntu Bash on Windows 进行了“巨大改进”,支持 Tmux
- Using impdp to Transfer Data on Linux Systems(impdplinux)
- Restarting Oracle on AIX: A Quick Guide(aix重启oracle)
- MySQL中的ON子句有什么作用(mysql中on代表什么)
- 深入浅出MySQL中的Code学习实用编程技巧(mysql中code)