macOS 進行 git clone 時報錯 fetch-pack: unexpected disconnect while reading sideband packet


macOS 進行 git clone 時報錯 fetch-pack: unexpected disconnect while reading sideband packet

 

   

報錯信息:

error: 6496 bytes of body are still expectedMiB | 242.00 KiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed

 

查找原因:

1)因為當前clone文件夾的屬性為“只讀”問題?—— No,Pass 

 git clone操作出現fatal:index-pack failed錯誤解決方案:https://blog.csdn.net/liguangzhenghi/article/details/48286663

於是,開啟文件夾為“讀+寫”:

  

 

2)使用如下方法好像成功一點點?

git clone的時候遭遇fatal: early EOF fatal: index-pack failed解決辦法https://www.cnblogs.com/codedoge/p/11466086.html

首先關閉 core.compression

git config --global core.compression 0
然后使用depth這個指令來下載最近一次提交

git clone --depth 1 <repo_URI>
然后獲取完整庫

git fetch --unshallow 
最后pull一下查看狀態,問題解決

git pull --all

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM