Can't connect to any repository: xxxxxx Error writing request body to server


今天在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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM