【git】fatal: unable to access 'https://github.com/top-think/framework.git/'
来源:互联网 发布:自组织神经网络算法 编辑:程序博客网 时间:2024/05/16 12:23
想从github上面克隆源码看看,报的错误,如下:
fatal: unable to access 'https://github.com/top-think/framework.git/': Recv failure: Connection reset by peer
百度问题主要集中在git代理这边,我们通过看git的基本配置
.gitconfig
可以看到git的基本配置:
[user] email = ×××@readtv.cn name = ×××@readtv.cn[http] proxy = 127.0.0.1:22 sslVerify = false
这里的proxy的参数就是代理设置的位置,在谷歌上查了很多办法都没有解决,有的方法是https连接模式改成ssh模式,或者是修改代理,比如:
git config --global http.proxy 192.168.1.1:8083
但是都没有解决我的疑惑,然后我发现了一个问题,就是我根本没有使用代理,所以这样登录方式肯定会有问题。还有把代理设置为
proxy = http://www.proxy.com:8080/
依然报错:
fatal: unable to access 'https://github.com/top-think/think.git/': Failed to connect to www.proxy.com port 8080: Connection timed out
最后方案:
git config --global http.proxy //查询到当前设置了代理,所以我取消这个设置: git config --global --unset http.proxy //再查询,已经没有了代理,然后再clone,成功了!
注:如果害怕影响git对别的项目的控制,最好先把
.gitconfig
copy一份,然后修改,该文件一般在/home/用户名/.gitconfig
,如果出什么问题便于恢复!!!
阅读全文
0 0
- 【git】fatal: unable to access 'https://github.com/top-think/framework.git/'
- Git错误fatal: unable to access 'https://github.com/****.git/': Couldn't resolve host 'github.com'
- 【iOS开发】Git错误fatal: unable to access 'https://github.com/Hanrovey/Demo_RuntimeExchangeMethod.git/
- fatal: unable to access 'https://github.com/gmarik/Vundle.vim.git/': Could not resolve host: github.
- fatal: unable to access 'https://github.com/taoge1024/kityminder.git/': SSL cert ificate problem: un
- [Git]fatal: unable to access ...: Failed to connect to github.com port 443: Timed out
- [Git]fatal: unable to access ...: Failed to connect to github.com port 443: Timed out
- unable to access 'https://github.com/apache/incubator-rocketmq.git/': Could not resolve host: github
- fatal:unable to access '...github.com/.../.git':Failed to connect to github.com port 443: Timed out
- Git解决fatal: unable to connect to github.com
- hexo提交报错 unable to access 'https://github.com/*/*.github.io.git/': Couldn't resolve host 'github.com
- unable to access 'https://github.com/CocoaPods/Specs.git/': SSLRead() return error -9806
- fatal: unable to access 'https://github.com/...': Could not resolve host: github.com
- remote: Permission to xxxxx/javaeelzw.git denied to xxxx. fatal: unable to access 'https://git
- fatal: unable to access 'https://github.com/***': Failed to connect to github.com port 443:Timed out
- git之fatal: unable to access 'https://git.oschina.net/pcmpcs/library.git/': Could not resolve host问题
- git clone出现fatal: unable to access 'https://': SSL certificate problem: self signed certificate in c
- git clone出现fatal: unable to access 'https://': SSL certificate problem: self signed certificate in
- scatter file 全功能介绍
- java多线程之多生产者与多消费者案例之Lock和Condition实现方式
- jQGrid的使用记录.
- 1058. 选择题(20) PAT
- js二维数组定义和初始化的三种方法
- 【git】fatal: unable to access 'https://github.com/top-think/framework.git/'
- 排序问题
- Android对图片进行高斯模糊
- 鱼眼图片转化位全景图片的软件以及鱼眼矫正方法
- php删除多维数组里面的值
- java.util.Stack源码解析
- linux 文件压缩解压
- MySql临时表,索引的简单介绍
- RMAN 常用命令汇总