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
原文地址:https://www.cnblogs.com/yangwenbo/p/12052997.html