Easily download projects from GitHub

GitHub is the largest open source code platform in the world. People like to find some high-quality open source projects there to learn and improve their programming skills.

But recently, due to some specific reasons, more and more people complain that they are suddenly unable to access GitHub. One big shot explained it as follows:

This is definitely a high wall on our way to learning programming! How can I stand this?

Below, Fishskin shows you some ways to bypass this wall and successfully download projects on GitHub. The process is very simple and can be learned in a minute or two!

1. The hosts

When we type GitHub’s address into our browser, we send a request to the DNS server to get the IP address of the server where GitHub’s site is located.

Just like if you are a Courier, you have to ask a middleman for the address of the recipient before you send the package. DNS is the middleman who tells you the destination address, and if DNS gives you the wrong address, or the request is blocked, or DNS is down, you can’t get to the site.

Is there any way to get the corresponding IP address without going through DNS?

The answer is to modify the hosts file. When a user enters an IP address in the browser, the system automatically searches for the corresponding IP address in the hosts file. Once the IP address is found, the system immediately opens the corresponding web page. If not, the system submits the IP address to the DNS server for IP address resolution.

Therefore, to access GitHub, you can use the IP query tool to obtain the real address of the current GitHub website, and then modify the local hosts file to associate the address with the GitHub address.

Find the location of the hosts file. The location of the hosts file varies depending on the OPERATING system (OS) :

  • Windows:C:\Windows\System32\drivers\etc\hosts
  • Linux system:/etc/hosts
  • Mac system:/etc/hosts
  • Android:/system/etc/hosts
  • IPhone (iOS) :/etc/hosts

Open the hosts file, add a line, and replace xx with the resolution address you found:

xx.xx.xx.xx www.github.com
Copy the code

But this way is more troublesome, and the IP query may not support domestic access, so the following is recommended another simpler way!

2. GitHub520

Of all the programmers in the country, there must be someone who will step up and solve the problem that everyone can’t access GitHub.

GitHub520 is a project to help you access GitHub, essentially by modifying hosts to achieve. The authors of this project provide you with a complete list of hosts, you don’t need to look up the available IP, very thoughtful, and updated daily!

In addition, the author also provides a tutorial to update the hosts content automatically on a regular basis, such as using the SwitchHosts tool. Configuration once, rest easy!

Of course, if you are unable to access GitHub, you can obtain the initial hosts address in the programming navigation, and then configure it as described in the first section of this article.

3. Speed up downloads

If you use the above two methods, you still cannot access GitHub, or the access speed is very slow. Another way to think about it is to download projects from GitHub.

There are many sites that support GitHub speed downloads, such as GitClone, by typing in the project name!

However, this method only works for downloading projects or learning, and you still can’t submit code to GitHub.

4. Gitee import

Gitee is the domestic version of GitHub, which can directly import the existing GitHub repository when creating a project. To download the source code of which project, directly enter the corresponding GitHub repository address can be!

You can also synchronize the Gitee repository with the GitHub repository at any time, and once the repository is synchronized, you can submit and manage code here.


These are just a few ways to access GitHub projects. I hope you can take advantage of GitHub to improve your programming skills.

Project address: www.code-nav.cn/rd/?rid=795…