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
2. Open the iTerm2 command line tool, edit the /etc/hosts file, and add ip to it, as shown below
sudo vim /etc/hosts
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
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。