一、遇到问题
fatal: unable to access 'https://chromium.googlesource.com/chromium/tools/depot_tools.git/':
Failed to connect to chromium.googlesource.com port 443 after 75054 ms: Couldn't connect to server
1.连接着vpn,网页上可以直接打开网站,但是使用terminal 执行
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2.报错
Cloning into 'depot_tools'...
fatal: unable to access 'http://chromium.googlesource.com/chromium/tools/depot_tools.git/': Failed to connect to chromium.googlesource.com port 80 after 75039 ms: Couldn't connect to server
3.原因
terminal没有走代理的流量
4.设置vpn代理
使用git config --global http.proxy "localhost:port",设置代理。
git config --global http.proxy "localhost:8001"