报错: |Please wait a moment...
remote: Counting objects: 864, done
remote: Finding sources: 100% (348/348)
packet_write_wait: Connection to XX.XX.XX.XX port XXX: Broken pipe
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
思路:
- Df -TH 查看磁盘容量
- 项目文件较大 跟网速也有关系
- 设置postBuffer大小
- git config --global http.postBuffer 1048576000 //如果还满足不了就翻倍
- http.postBuffer是HTTP传输所使用的缓冲区的最大大小(以字节为单位)。对于大于此缓冲区大小的请求,HTTP / 1.1 Transfer-Encoding: chunked用于避免在本地创建大量的包文件。默认值是1 MiB,这对大多数请求来说已经足够了。