场景回忆: 本地修改需要退回到之前的版本,打算强制push本地版本覆盖远程版本,但是在git push --force后出现了以下的错误: Fix GitLab error: "you are not allowed to push code to protected branches on this project"? 问题原因: 原来gitlab对应的分支进行分支保护设置. 解决方法: "Settings" -> "Repository"…
error: You are not allowed to push code to protected branches on this project....error: failed to push some refs to ... there's no problem - everything works as expected. In GitLab some branches can be protected. By default only 'master' user can com…
报错信息: error: RPC failed; curl 18 transfer closed with outstanding read data remainingfatal: the remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failed 解决方法一:网上大部分解决措施:命令终端输入如下命令,但是一般并不好使, git config --global http.postBuffer 524288000…