git clone 中途停止不動


參考鏈接1:https://blog.csdn.net/weixin_36965307/article/details/105046699

參考鏈接2:https://blog.csdn.net/lemon4869/article/details/106849352

 

原因1:可能是clone的文件太大。

解決:查看當前Postbuffer的數值

git config --list

設置合適的值

git config --global http.postBuffer 524288000

 

原因2:可能是下載速度太慢

使用國內鏡像,目前已知Github國內鏡像網站有github.com.cnpmjs.org和git.sdut.me

可以把github.com 替換為 github.com.cnpmjs.org或者git.sdut.me

如:git clone https://github.com/aaa/xxx.git

替換成:git clone https://github.com.cnpmjs.org/aaa/xxx.git

OK。


免責聲明!

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



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