admin管理员组

文章数量:1026989

现象:
命令行请求失败。

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

现象:
命令行请求失败。

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

本文标签: 命令行浏览器Git