github不使用代理就可以访问,但如何要克隆android的源码或其他的一些不在github的源码会非常慢。就算你电脑挂的科学上网也不行,因为git并不会自动使用代理。
其实要让git使用代理非常简单
设置代理
git config --global http.proxy 代理地址
git config --global https.proxy 代理地址
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
查看当前已设置的代理
git config --global --get http.proxy
git config --global --get https.proxy
查询的时候没有打印任何东西证明没有设置代理