git clone出现 fatal: unable to access ‘https://github.com/...‘的解决办法
发生这种情况是因为代理是在git中配置的。既然它是https代理(而不是http)git config http.proxy和git config --global http.proxy也无济于事。
解决方案一
1、看看你的git配置
git config --global -l
如果你没有任何与https代理相关的内容,例如https_proxy = …问题不在这里。
如果您有与https代理相关的内容,请将其从〜/ .gitconfig文件中删除,然后重试。
2、如果仍然不起作用,请取消设置环境变量
env|grep -i proxy
你应该有一行或几行https_proxy = …
使用以下内容逐个取消设置:取消设置https_proxy(或HTTPS_PROXY,具体取决于变量的名称)
3、再次检查环境变量
env|grep -i proxy
如果它没有显示任何你应该是好的。
注意:此解决方案可以应用于http和https代理问题。只是变量名称从https更改为http。
解决方案二
在开启shadowsocks的前提下,手动配置git的代理。git客户端输入如下两个命令就可以了。
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
http://也可以改成sockets5://,但是区别在于:socks5不支持通过pubkey免密登录github,每次提交代码只能输入用户名和密码。http可以支持免密登录。
取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
其实方案一和方案二是同一种方法,不过方案二更加具体一点罢了,大部分问题都可以用方案二解决,当方案二无效时,考虑使用方案一。
参考文献:https://stackoverflow.com/questions/24543372/git-cannot-clone-or-push-failed-to-connect-connection-refused
git clone出现 fatal: unable to access ‘https://github.com/...‘的解决办法相关推荐
- git clone出现 fatal: unable to access 'https://github.com/...'的解决办法(亲测有效)
如下图所示,当我试图克隆别人的repo时,会发生这样的错误,当我从git:/而不是https://,克隆时,它工作得很好. 发生这种情况是因为代理是在git中配置的.既然它是https代理(而不是ht ...
- git clone出现 fatal: unable to access ‘https://github.com/...‘的解决办法(亲测有效)
windows系统检测下Users/下的.git-credentials文件中的账号密码是否与真实密码一致,不一致修改成正确的
- git clone 出现fatal: unable to access ‘https://github 类错误解决方法
git clone 遇到问题:fatal: unable to access 'https://github.comxxxxxxxxxxx': Failed to connect to xxxxxxx ...
- git clone 出现fatal: unable to access https://github 解决方法
git clone 出现fatal: unable to access https://github 类错误解决方法 git clone 遇到问题: ① fatal: unable to access ...
- git clone 出现fatal: unable to access ‘https://github.com/xxx: Failed to connect to github.com
问题描述: 使用git clone命令时,出现如下错误: fatal: unable to access 'https://github.com/xxx': Failed to connect to ...
- git clone出现 fatal: unable to access ‘https://github.com/...‘的两种解决方法
利用gitee下载github中开放的源码 方法一: step 1: step 2: step 3: 方法二 ...
- git clone出现 fatal: unable to access ‘https://github.com/...
发生这种情况是因为代理是在git中配置的.既然它是https代理(而不是http)git config http.proxy和git config --global http.proxy也无济于事. ...
- git clone出现 fatal: unable to access ‘https://github.com/...‘resolve host: ds-git.gree.com的解决办法
我出现这个问题,是因为网不好. 可参考: 添加链接描述 或者 添加链接描述
- git clone报错 unable to access “https://github.com/xxxxx“
在克隆github其他人代码时,发现报错:fatal: unable to access 'https://github.com/xxxxx/': Failed to connect to githu ...
最新文章
- jQuery学习笔记——jQuery选择器详解种类与方法
- Akka系列(六):Actor解决了什么问题?
- 自学python清单-我的2018学习清单
- RabbitMQ入门-Routing直连模式
- iOS之深入解析Xcode的拼写检查
- ObjectAnimator属性动画应用demo
- gm怎么刷东西 rust_Rust语言:解引用详述,搞不明白这个概念,趁早放弃Rust
- Vue-render函数的三个参数
- Spring整合Redis作为缓存
- python常用的颜色英文表达_面料颜色中英文翻译对照表
- centos7 vi保存退出_怎么保存退出vi编辑 vi常用命令大全
- 我的编程之路点滴记录(四)
- eclipse中项目运行时报错之 Compilation error解决方法
- spring-cloud(十一)GateWay强大的路由谓词(断言)功能
- 【每日最爱一句】2013.07.31
- 企业邮箱管理员如何管理邮箱
- 高考计算机会考等级划分标准,学考等级怎么划分标准2021
- js之css样式特效 ---- js篇
- 香港城大:首创3D打印磁控微型机器人技术,推动人体送药研究发展
- 【毕业设计】LSTM股票预测系统 - python 深度学习
热门文章
- Word中添加图片时自动添加图片名
- 百变星君---用户模块
- [转载]普通pc电脑安装苹果系统mac_详细教程(精)附带所有工具下载
- 安卓安装github官方app
- JAVA专辑鉴赏网站计算机毕业设计Mybatis+系统+数据库+调试部署
- 创新!专注!深耕!发现!揭秘努比亚5G时代布局
- 《牧马城市》——我们的城市
- 基于springboot家具销售电商平台
- 其他CSS效果:粘性滚动、图片故障艺术动画、平滑凹凸圆角、单标签绘图
- Unity PureMVC 之 PureMVC 框架的下载,以及一个简单应用学会使用 PureMVC 框架