现象:
命令行请求失败。
fatal: unable to access 'https://github/xxx': Failed to connect to github port 443: Timed out
解决:
方法一(mac)host添加代理:
sudo vim /etc/host ,添加如下内容
ip 域名
10.3.3.33 xxxx.ck
方法二 git 添加代理:
设置代理
git config --global http.proxy '10.3.3.33:33'
git config --global https.proxy '10.3.3.33:33'
查看代理
git config --global --get http.proxy
git config --global --get https.proxy
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
发布者:admin,转转请注明出处:http://www.yc00.com/web/1742570738a4460387.html
评论列表(0条)