Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the ways to improve the speed of accessing Github in China?

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "what are the methods to improve the speed of domestic access to Github". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the methods to improve the speed of domestic access to Github?"

1. GitHub image access

Here are two of the most commonly used mirror addresses:

Https://github.com.cnpmjs.orghttps://hub.fastgit.org

In other words, the image above is a cloned version of GitHub. You can visit the mirror website above, where the content is fully synchronized with GitHub, and then download clones and other operations on this site.

2. GitHub file acceleration

Using Cloudflare Workers to accelerate github release, archive and project files, deployment does not need a server and comes with CDN.

Https://gh.api.99988866.xyzhttps://g.ioiox.com

The above website is a demonstration site, if you can't open it, you can view the open source project: gh-proxy-GitHub (https://hunsh.net/archives/23/) file acceleration self-deployment).

3. Github accelerated download

Just copy the current GitHub address and paste it into the input box to speed up the download!

Address: http://toolwa.com/github/

4. Speed up your Github

Https://github.zhlh7.cn

Enter the address of the Github warehouse and use the generated address for git ssh and other operations

5. Google browser GitHub acceleration plug-in (recommended)

If it is inconvenient for your partner to install online, you can reply: github acceleration in the official account background.

6. GitHub raw acceleration

The GitHub raw domain name is not github.com but raw.githubusercontent.com. If the GitHub acceleration above cannot accelerate this domain name, you can use the reverse service provided by Static CDN.

Replace raw.githubusercontent.com with raw.staticdn.net to speed up.

7. GitHub + Jsdelivr

The only drawback of jsdelivr is that it cannot get the exe file and the attached exe and dmg files at Release.

That is, if the exe file is attached to the Release but not in the code, it is not available. Therefore, it can only be used as a static file cdn, not as a Release accelerated download.

8. Download via Gitee to fork warehouse

There are many related tutorials on the Internet, here is a brief description of the operation.

Visit the gitee website: https://gitee.com/ and log in, and select "Import Warehouse from GitHub/GitLab" at the top as follows:

Paste your Github warehouse address on the import page and click Import:

Wait for the import operation to complete, and then download and browse the corresponding GitHub repository code in the imported repository. You can also click the "Refresh" button at the top of the warehouse to synchronize the Github code repository.

9. Speed up by modifying HOSTS files

Manually bind cdn and ip addresses.

Step one:

Get the global.ssl.fastly of github

Address access:

Http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo

Get the cdn and ip domain names:

Get:

199.232.69.194 https://github.global.ssl.fastly.net

Step 2: get the github.com address

Visit:

Https://github.com.ipaddress.com/#ipinfo

Get cdn and ip:

Get:

140.82.114.4 http://github.com

Step 3: modify the host file to map the IP found above

Windows system:

1. Modify the permissions of the C:\ Windows\ System32\ drivers\ etc\ hosts file and specify writable: right-click-> hosts- > Properties-> Security-> Edit-> Click Users- > tick after the permission "write" of Users. As follows:

Then click OK.

2. Right-click-> hosts- > Open method-> Select notepad (or your favorite editor)-> add the following at the end:

199.232.69.194 github.global.ssl.fastly.net140.82.114.4 github.com Thank you for your reading, the above is the content of "what are the methods to improve the speed of domestic access to Github". After the study of this article, I believe you have a deeper understanding of the methods to improve the speed of domestic access to Github, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report