git clone 踩過的坑3

報錯: |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

思路:

  1. Df -TH  查看磁盤容量
  2. 項目文件較大  跟網速也有關係
  3. 設置postBuffer大小
    1.  git config --global http.postBuffer 1048576000  //如果還滿足不了就翻倍
    2. http.postBuffer是HTTP傳輸所使用的緩衝區的最大大小(以字節爲單位)。對於大於此緩衝區大小的請求,HTTP / 1.1 Transfer-Encoding: chunked用於避免在本地創建大量的包文件。默認值是1 MiB,這對大多數請求來說已經足夠了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章