I don’t know why github is inaccessible on MAC these days. I have searched a lot and finally found a solution in this article. Other reference blogs

  • 1.Click here to visit.https://github.com.ipaddress.com/Note the IP address in the screenshot below.

  • 2.Click here to visit.https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfoNote the IP address in the screenshot below.

  • 3. Go as shown below/etc/hosts.

  • 4. To findhostsFile.

  • 5. Direct editinghostsThe file can not be edited, you need to copy a copy to the desktop for editing, editing the previous delete and then drag it in. After the final edit is completed and dragged in, the picture is as follows:

  • 6. Run the following command on the terminal to refresh DNS.
sudo killall -HUP mDNSResponder; say DNS cache has been flushedCopy the code