GIthub访问速度慢的解决方法

公司dns对github.com解析的ip地址访问比较慢。

在我的电脑,cmd今天ping www.github.com

GIthub访问速度慢的解决方法_第1张图片

修改 /etc/hosts

改前才10k左右,改了速度提升到480KiB/s

[root@localhost ~]# git clone https://github.com/openshift/installer.git
Cloning into 'installer'...
remote: Enumerating objects: 49, done.
remote: Counting objects: 100% (49/49), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 72801 (delta 19), reused 20 (delta 10), pack-reused 72752
Receiving objects: 100% (72801/72801), 57.04 MiB | 480.00 KiB/s, done.
Resolving deltas: 100% (43985/43985), done.
Checking out files: 100% (12443/12443), done.

 

你可能感兴趣的:(GIthub访问速度慢的解决方法)