今天在git提交代碼時一直報如下錯誤:
Can't connect to any repository: https://gitee.com/xxxxxx(https://gitee.com/xxxx: Error writing request body to server)
后來經過谷歌發現是git默認的post緩存為1M,當項目過大時,就會出現問題。
解決方案:
一、gitBash修改
#增加為 500MB
git config http.postBuffer 524288000
二、eclipse Git插件修改
Window -> Preferences 中找到 Team -> Git -> Configuration 配置界面,在System Settings Tab頁中 點擊 “Add Entry…” 按鈕來添加一個配置項:
key為: http.postBuffer
value為:524288000