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