0
点赞
收藏
分享

微信扫一扫

github/git问题之 LibreSSL SSL_connect: Operation timed out in connection to github.com:443

最后的执着 2022-03-12 阅读 94
githubgitssl

文章目录

问题描述

系统环境:mac

命令执行问题

gaoxinfudeMacBook-Pro:Github gaoxinfu$ git clone https://github.com/pagehelper/Mybatis-PageHelper.git
正克隆到 'Mybatis-PageHelper'...
fatal: 无法访问 'https://github.com/pagehelper/Mybatis-PageHelper.git/':LibreSSL SSL_connect: Operation timed out in connection to github.com:443 
gaoxinfudeMacBook-Pro:Github gaoxinfu$ git clone http://github.com/pagehelper/Mybatis-PageHelper.git
正克隆到 'Mybatis-PageHelper'...

fatal: 无法访问 'http://github.com/pagehelper/Mybatis-PageHelper.git/':Failed to connect to github.com port 443: Operation timed out

在这里插入图片描述

1.git clone gitee中的项目是可以正常clone的,但是GitHub的项目 没有办法clone下来
2.所以这里的根据问题是,gittee仓库和GitHub仓库两个仓库如何共存的问题
3.之前的我的电脑设置了GitHub的公钥,但是gitee设置账户密码,在vim ~/.gitconfig 之中,
  所以这个时候你从GitHub中拉取代码的时候 会优先使用其账户密码,显示用gitee中的账户密码去clone GitHub中的项目会失败

解决方案

参考地址
删除账户密码,gitee和GitHub都设置 公钥

https://www.jianshu.com/p/68578d52470c
举报

相关推荐

0 条评论