git报错error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500

报错

$ git push;
Enumerating objects: 1002, done.
Counting objects: 100% (1002/1002), done.
Delta compression using up to 8 threads
Compressing objects: 100% (974/974), done.
Writing objects: 100% (1002/1002), 41.40 MiB | 6.22 MiB/s, done.
Total 1002 (delta 72), reused 0 (delta 0), pack-reused 0
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

解决办法

git config --global http.postBuffer 157286400
原文地址:https://www.cnblogs.com/wangzhaobo/p/14278157.html