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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章