git push 報504 (因提交文件內容過大而失敗的解決方案)


Enumerating objects: 60, done.

Counting objects: 100% (60/60), done.
Delta compression using up to 4 threads
Compressing objects: 100% (57/57), done.
Writing objects: 100% (58/58), 1.88 MiB | 5.94 MiB/s, done.
Total 58 (delta 7), reused 0 (delta 0)
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly

問題原因:由於提交文件內容過大,導致git報錯

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


免責聲明!

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



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