git浏览器可以访问,命令行访问不了

现象: 命令行请求失败。 fatal: unable to access https:githubxxx: Failed to connect to github port 443: Timed out解决&a

现象:
命令行请求失败。

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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信