这两天,在家打开 Android Studio (Windows)突然发现,git 无法连上。 然后试试挂科学,可以访问 github 网页,但是终端 git 命令依然还是提示 repository not found。 再试 ping github.com ,发现 github 被解析到了 ::1 或 127.0.0.1。 已知 C:\Windows\System32\drivers\etc\hosts 文件并没有对 github 作任何处理,由此猜测是被 dns 劫持了,所以修改 hosts 文件,指定 git…