GitHub acceleration guide advanced

Time:2021-6-14

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: https://github.com/ineo6/hosts
  • Image address: https://gitee.com/ineo6/hosts

Usage

hosts

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

185.199.108.154              github.githubassets.com
140.82.113.22                central.github.com
185.199.108.133              desktop.githubusercontent.com
185.199.108.153              assets-cdn.github.com
185.199.108.133              camo.githubusercontent.com
185.199.108.133              github.map.fastly.net
199.232.69.194               github.global.ssl.fastly.net
140.82.114.3                 gist.github.com
140.82.114.5                 api.github.com
185.199.108.133              raw.githubusercontent.com
185.199.108.133              user-images.githubusercontent.com
185.199.108.133              favicons.githubusercontent.com
185.199.108.133              avatars5.githubusercontent.com
185.199.108.133              avatars4.githubusercontent.com
185.199.108.133              avatars3.githubusercontent.com
185.199.108.133              avatars2.githubusercontent.com
185.199.108.133              avatars1.githubusercontent.com
185.199.108.133              avatars0.githubusercontent.com
185.199.108.133              avatars.githubusercontent.com
140.82.113.9                 codeload.github.com
52.216.160.43                github-cloud.s3.amazonaws.com
52.216.179.211               github-com.s3.amazonaws.com
52.217.69.236                github-production-release-asset-2e65be.s3.amazonaws.com
52.216.185.107               github-production-user-asset-6210df.s3.amazonaws.com
52.217.13.92                 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.133              media.githubusercontent.com

# Please Star : https://github.com/ineo6/hosts
# Mirror Repo : https://gitee.com/ineo6/hosts
# Update at: 2021-03-29 18:16:31

# GitHub Host End

Manually configure hosts

macOS

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

Windows

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: https://cdn.jsdelivr.net/gh/i…
  • Auto update: 1 hour

So you can communicate with the latesthostsStay in sync.

GitHub acceleration guide advanced