最近在Go官网学习,当要求我用git克隆代码时:
git clone https://go.googlesource.com/example
出现错误:
Cloning into 'example'...
fatal: unable to access 'https://go.googlesource.com/example/': Failed to connect to go.googlesource.com port 443: Timed out
网上的方法都不能解决这个错误。
最后想在https://go.googlesource.com/example试试能不能直接下载,发现了:
于是将命令改为:
git clone https://github.com/golang/example.
克隆成功。
虽然未能从根源上解决问题。但曲线救国未尝不是一种好办法。