描述

使用在linux操作系统上使用git clone下载github上模型速度慢,多数是因为网不好。

提供了两种方法,可以同时使用。

方法:先刷hosts

1. 命令行输入下列代码,找到 github.global.ssl.fastly.Net对应的Address,记录

nslookup github.global.ssl.fastly.Net

2. 再输入下列代码,找到github.com对应的Address,记录

nslookup github.com

3. 打开hosts

sudo gedit /etc/hosts

4. 修改hosts,在打开的hosts文件的最后两行输入刚才记录的两个名子以及对应的Address,保存

5. 最后刷新

sudo /etc/init.d/networking restart

 

方法:修改git设置

命令行输入

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

----------------------------------------------------------------------------------------------------------------------------------

更新日期 2020-6-12

谢谢评论提醒,不然我还没注意到:修改sudo /etc/init.d/networking.service.为sudo /etc/init.d/networking restart

 

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐