git推送错误:RPC失败;结果= 56,HTTP代码= 0

问题描述:

详细信息:

Detailed info:

Username for 'https://xiangwan.visualstudio.com': xiangwan
Password for 'https://xiangwan@xiangwan.visualstudio.com':
Counting objects: 85, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (58/58), done.
Writing objects: 100% (63/63), 20.67 KiB | 0 bytes/s, done.
Total 63 (delta 26), reused 1 (delta 0)
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date




  1. 已设置 git config http.postBuffer 524288000 ,仍然是错误;
  2. 只有HTTPS验证,无SSH

  1. has set git config http.postBuffer 524288000, still the error;
  2. Only HTTPS authenticate, no SSH


问题很可能是因为你的git缓冲区太低。

The problem is most likely because your git buffer is too low.

你需要通过设置来增加Git的HTTP缓冲区。

You will need to increase Git’s HTTP buffer by setting.

git config --global http.postBuffer 2M