报错信息:
在git push的时候,出现如下问题:
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
完整错误如下:
14:17:04.288: [xxxxxxx] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false fetch origin --recurse-submodules=no --progress --prune
14:19:50.743: [xxxxxxx] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/dev:dev
Enumerating objects: 11, done.
Counting objects: 9% (1/11)
Counting objects: 18% (2/11)
Counting objects: 27% (3/11)
Counting objects: 36% (4/11)
Counting objects: 45% (5/11)
Counting objects: 54% (6/11)
Counting objects: 63% (7/11)
Counting objects: 72% (8/11)
Counting objects: 81% (9/11)
Counting objects: 90% (10/11)
Counting objects: 100% (11/11)
Counting objects: 100% (11/11), done.
Delta compression using up to 16 threads
Compressing objects: 16% (1/6)
Compressing objects: 33% (2/6)
Compressing objects: 50% (3/6)
Compressing objects: 66% (4/6)
Compressing objects: 83% (5/6)
Compressing objects: 100% (6/6)
Compressing objects: 100% (6/6), done.
Writing objects: 14% (1/7)
Writing objects: 28% (2/7)
Writing objects: 42% (3/7)
Writing objects: 57% (4/7)
Writing objects: 71% (5/7)
Writing objects: 85% (6/7)
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (7/7)
Writing objects: 100% (7/7), 1.41 MiB | 3.35 MiB/s, done.
Total 7 (delta 3), reused 0 (delta 0), pack-reused 0 (from 0)
fatal: the remote end hung up unexpectedly
Done
原因分析:
原先push都没有问题,这次带了一个1.5M的文件就出了问题,基本上就是这个文件大小的问题;
解决方案:
git config --global http.postBuffer 524288000