错误提示the remote end hung up unexpectedly Everything up-to-date:
git push时出现错误 the remote end hung up unexpectedly Everything up-to-date,导致代码无法成功上传。
原因是因为自己的git库上面有一些数据导致整个git库比较大,而curl的postBuffer 默认值较小,所以出现了这个错误。
解决方法:
默认 Git 设置 http post 的缓存为 1MB,使用命令将git的缓存设为500M,重新配置一下postBuffer值
方法1:命令行输入
$ git config --global http.postBuffer 524288000
方法2:直接在配置文件中添加参数即可.
windows:
在 .git/config 文件中加入
[http]
postBuffer = 524288000
linux:
$ git config http.postBuffer 524288000
错误提示schannel: failed to receive handshake, SSL/TLS connection failed
这个错误解决方法:
git config --global http.sslBackend "openssl"
同时打开科学上网工具,就可以git push 文件了.
近期评论