云计算

解决git无法clone提示443以及配置git代理方法

2019-11-01  本文已影响0人  梅_梅

现象:

Cloning into '/Users/brodyliao/Library/Caches/Homebrew/go--gotools--git'...

fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out

解决方案(在有翻墙的情况下):

git config --global http.proxy "localhost:1080”

如需要取消:

git config --global --unset http.proxy
上一篇 下一篇

猜你喜欢

热点阅读