First, open the following file
Then copy and paste this code at the end of the text
20.205.243.166 github.com
# GitHub Start
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
# GitHub End
Then save and exit, finally open cmd and use the command
ipconfig/flushdns
Just refresh the DNS
After completion, you can directly access github.com
Effective in personal testing