git pull/push 因提交文件內容過大而失敗的解決方案

不知是 GitHub 在國內又被封了仍是由於本文的緣由,我我的是在執行了下述操做後成功提交了。 git

以做記錄,內容以下: shell

Compressing objects: 100% (163/163), done.
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
Writing objects: 100% (365/365), 3.39 MiB | 0 bytes/s, done.
Total 365 (delta 245), reused 315 (delta 199)
fatal: The remote end hung up unexpectedly
Everything up-to-date

問題緣由:因爲提交文件內容過大,致使git報錯。 post

解決方案:修改http請求最大容量   $ git config http.postBuffer 524288000 spa

相關文章
相關標籤/搜索