一、报错内容
对于新创建的git项目,此时git分支上没有文件,在本地创建项目,集成需要的配置后,包括忽略文件配置,git push会报错,报错内容如下:
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 4 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.65 KiB | 168.00 KiB/s, done.
Total 9 (delta 1), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 52 Empty reply from server
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
或者:
Enumerating objects: 26,done.
Counting objects:100%(26/26),done.
Delta compression using up to 4 threads
Compressing obiects: 100% (18/18),done
Writing objects: 100%(25/25),4.91 KiB 201.00 KiB/s, done.