← Back to list

: GitHub, completely shut down the country's IPs, Hong Kong's IPs, Macao's IPs? The programmer's crying: My code is still on it!

itadol5j

3a4496b-742b-4af88-8311-9e144746eb99

Shit, GitHub. Really?

This morning, as usual, I turned on the computer, ready to pull a code, and then...

"GitHub cannot access"

aa79fd4d-10c2-427e-8095-40fe5972a52b

♪ ♪ I'll tell you ♪

I did 10 fucking times, changed three browsers, even restarted the router, and the result was the same.GitHub, it won't open!

The circle of friends, the Twitter community, the tweets all blew up and a bunch of programmers cried:

  • "My projects are still up there!"
  • "There's no push on the code, and now the company wants me to do my homework, and I'll give you a hammer?"
  • "GitHub is sealed? So what are we writing about?"

What's going on?

For the moment,GitHub's main station (github.com) does restrict access to the national IP.In the past few years, China and Hong Kong, including China, has been affected by IP.

Some say it's “network security”, others say it's “policy adjustments”, and some conspiracies say, “It's the root of the programmer's life that's to be completely broken”.

But for whatever reason,The truth is, you can't get up there!

Don't panic. Try these first!

Even though GitHub has no official statement, we've never seen a programmer before.The walls are too high to hold us back!

Method 1: Change Hosts (simple but potentially unstable)

  1. Found you. hosts File (Windows in) C:\Windows\System32\drivers\etc\Mac/Linux is here. /etc/hostsI'm not sure.
  2. Add this line:

    20.205.243.166 github.com  
    
  3. Save, restart the browser.

(If not, another IP, "GitHub hosts Update" will always find)

Method 2: Science on the Internet (both understood and understood)

If you have a ladder, a direct global agent, steady one.

Method 3: GitHub mirror station

Some of the national mirror stations are still available, for example:

(But mirror stations may be delayed at a high rate, suitable for emergency viewing codes, not suitable for long-term use)

Method 4: Gitee backup (national production replacement)

If GitHub is really unusable for a long time,Gitee. It's a spare, but... you know, it's a strict audit, and many projects can't.

4. Programmers ' anger: What did we do wrong?

GitHub is sealed, and the worst is the programmer.

  • Students: All the codes are on it, and the teacher gave GitHub the link. What now?
  • Hit the workers.: The company's project was held in GitHub, which is not connected at this time, and the boss asked, “Why didn't you submit it today” and said, “because the state refused”?
  • Open source contributor: The hard work of the project, suddenly the whole world can't see it, and the mind breaks...

Who's messing with the code?

5. What about the future?

If GitHub is really blocked for a long time, then we can only adapt:

  • Backup CodeLocal, private Gitlab, Gitee
  • Learn to cross the wall.: The programmer doesn't use science, like the cook doesn't use a knife
  • Focus on alternativesGitLab, Bitbucket, too.

Finally, say something true.

I know, a lot of people saw GitHub be sealed, the first reaction was scolding. But it won't solve the problem. We have to find a way to live.

The programmer is one of the most hard-core groups of the time.A GitHub is sealed. We can find 100 ways to keep writing codes.I don't know.

The code's not dead. Just a different place to run.


Organisation
If you have a programmer who doesn't know GitHub is sealed,Get rid of the article! Don't let him do it all day!

Focus on us, reply to GitHub and get the latest access method!

PS: If this article is gone, you know, find me somewhere else...