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