GitHub acceleration guide advanced


What’s the use of this? The most intuitive effect isGitHubThe pictures can be loaded normally and the web page is stable.

GitHub HostsMainly through modificationhostThe way to speed upGitHubAccess to solve the problem that the picture can not be loaded and the access speed is slow.

  • Main station:
  • Image address:



The content is updated regularly, the latest update time: 2021-03-29 18:16:31.

Please get the latest version from the site address in the previous article.

# GitHub Host Start    

# Please Star :
# Mirror Repo :
# Update at: 2021-03-29 18:16:31

# GitHub Host End

Manually configure hosts


hostsFile location:/etc/hosts

macOSThe modification under the system should be carried out as follows:

1: First, open the finder.
2: Using key combinationsShift+Command+GOpen “go to folder” and enter it in the input box/etc/hosts
3: And then it will jump tohostsFile location.

Note: if you useVS CodeIt can be used directlyVS CodeModify and save without copying files.

copyhostsPut the file on the desktop, right-click it, and select “open method” – text edit to open the filehostsFile, put the front onehostsCopy in the content.

And then I’ll fix it for youhostsFile replacement:/etc/hostsDocuments.

Note: if the password input box pops up, you need to enter the password corresponding to your current login account.

Finally, refresh the cache:

sudo killall -HUP mDNSResponder


hostsFile location:C:/windows/system32/drivers/etc/hosts

I’m going to go to the fronthostsContent appended tohostsFile, and then refreshDNSCache:

ipconfig /flushdns

Through switchhosts! Auto update

It is recommended hereSwitchHosts!to configurehosts, the operation is very simple, support cross platform.

For details, you can read switchhosts! You can manage hosts like this. I regret that I didn’t use it earlier.

Manual configuration

Add onehostsRule and enable, and then copy the previous texthostsContent is enough.

If you want to keep up with the latest rules in the cloud, you can use the following configuration.

Timing synchronization

Add a rule:

  • Scheme Name: GitHub (you can name it yourself)
  • Type: Remote
  • URL address:…
  • Auto update: 1 hour

So you can communicate with the latesthostsStay in sync.

GitHub acceleration guide advanced