fatal: early EOF fatal: index-pack failed


部署git服務器,部署了一個工程在服務器上,同事git clone時候出現了如下錯誤:

Cloning into 'dap'...

remote: Counting objects: 627, done.

remote: Compressing objects: 100% (618/618), done.

error: pack-objects died of signal 9.81 MiB | 144.00 KiB/s     

error: git upload-pack: git-pack-objects died with error.

fatal: git upload-pack: aborting due to possible repository corruption on the remote side.

remote: aborting due to possible repository corruption on the remote side.

fatal: early EOFs:  99% (621/627), 8.05 MiB | 113.00 KiB/s   

fatal: index-pack failed

查了問題后更改本地設置:

git config --global pack.packSizeLimit 50m

git config --global pack.windowMemory 50m

git config --global core.compression 9

git config --global pack.threads "1"

git config --global pack.window "0"

重新git clone 的時候出現如下問題:

Cloning into 'dap'...

remote: Counting objects: 627, done.

remote: Compressing objects: 100% (618/618), done.

remote: aborting due to possible repository corruption on the remote side.

error: pack-objects died of signal 9

error: git upload-pack: git-pack-objects died with error.

fatal: git upload-pack: aborting due to possible repository corruption on the remote side.

fatal: early EOFs:  99% (621/627), 8.05 MiB | 157.00 KiB/s   

fatal: index-pack failed

再出現這個的時候google了很久發現沒啥解決方案后,

研究了下,嘗試了只clone相應的分支的代碼可以成功或者執行

git clone --depth 1  加上地址也可以。

 


免責聲明!

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



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