Preface

Recently, I found that my macbook could not be connected to github using chrome, so I found a solution online, recorded it and shared it with everyone.

operate

1. Get the IP of
Open the website websites.ipaddress.com/github.com `copy the ip inside
image.png

2. Open the iTerm2 command line tool, edit the /etc/hosts file, and add ip to it, as shown below

sudo vim /etc/hosts

image.png
Open chrome again to access github normally.

Summarize

If you still can't open it next time, just change the ip!

Quote

Github cannot be connected to the solution Android studio Ali mirror address
websites.ipaddress.com/github.com


Awbeci
3.1k 声望213 粉丝

Awbeci