参考自:http://www.eblogs.cn/git/165.html
本来打算clone android launcher 源码,通过git命令clone,执行命令如下:
$ git clone https://android.googlesource.com/platform/packages/apps/Launcher/+/android- 2.1_r2.1p2
Cloning into 'android-2.1_r2.1p2'...
fatal: unable to access 'https://android.googlesource.com/platform/packages/apps/Launcher/+/and roid-2.1_r2.1p2/': Failed to connect to android.googlesource.com port 443: Timed out
从提示看应该是没有连上服务器,通过上网查找原因,原来是需要设置代理,代理配置如下:
$