錯誤原因:
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