Git 踩坑记录
git push
时报错 fatal: the remote end hung up unexpectedly
在执行 git push
时,报错 fatal: the remote end hung up unexpectedly
详细报错信息
bash
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 11 threads
Compressing objects: 100% (16/16), done.
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (21/21), 1.46 MiB | 1.49 MiB/s, done.
Total 21 (delta 4), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
这是由于 git
的 http.postBuffer
设置过小,导致上传失败
解决方法:
bash
# 设置 postBuffer 为更大值
git config --global http.postBuffer 524288000