git報錯fatal: protocol error: bad pack header


今天換電腦,要重新clone新項目,結果報了如下錯誤:

remote: Counting objects: 19442, done.
remote: warning: suboptimal pack - out of memory
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

 

網上搜索了下,進入git服務器,輸入如下命令:git config --global pack.windowMemory "100m"

完美解決問題!


免責聲明!

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



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