git报错:Push failed Enumerating objects: 23, done. Delta compression using up to 12 threads Total 12 (delta 11), reused 0 (delta 0), pack-reused 0 RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 send-pack: unexpected disconnect while reading sideband packet the remote end hung up unexpectedly,如下图:
产生错误的原因可能有以下3种:
-
网络问题:HTTP 504 错误表示网关超时。这可能是由于网络连接不稳定或远程服务器负载过重而导致的。你可以尝试重新推送更改,确保网络连接良好,并且远程服务器负载较低。
-
权限问题:如果你没有权限向远程仓库推送更改,也可能会出现类似的错误。确保你有推送到该仓库的权限,并且你使用的是正确的身份验证凭据。
-
仓库缓存配置问题:本仓库的配置缓存问题。
如果你平时是正常使用,突然某一天不可以正常使用,非常可能是仓库缓存配置 问题,可使用以下指令进行操作,如下图:
1 查看git post缓存
git config -l |find "buffer"
2 配置git post提交缓存
git config --global http.postBuffer 5242880000
重新设置后,再次提交成功。