報錯: |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,這對大多數請求來說已經足夠了。