causes

Git clone speed reached B/s on Github, but failed later.

Problem solving

Git clone particularly slow because the domain name github.global.ssl.fastly.net is limited.

Just find the IP address of the domain name and add the MAPPING of IP – > domain name in the hosts file to refresh the DNS cache.

steps

1. Search

Search separately at www.ipaddress.com/

  • github.global.ssl.fastly.net

  • github.com

The IP addresses of the two domain names

2. Change the hosts file

On Windows use the administrator to open Notepad and then open the file in the above file path to change.

  • On Windows, the hosts file is stored in C:\Windows\System32\drivers\etc\hosts

  • In Linux, the hosts file is stored in sudo vim /etc/hosts

Add to the file

199.232.69.194 github.global-ssl.fastly.net

140.82.114.3 github.com

3. Save and update the DNS

  • In Windows, open CMD and enter ipconfig /flushdns
  • In Linux, run sudo /etc/init.d/networking restart on the terminal