Intro

clone 某个来自于 github 的仓库的时候,报错如下:

leung@wuyujin coderepo % git clone https://github.com/spring-guides/gs-consuming-web-service.git
Cloning into 'gs-consuming-web-service'...
fatal: unable to access 'https://github.com/spring-guides/gs-consuming-web-service.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
leung@wuyujin coderepo % git clone https://github.com/spring-guides/gs-consuming-web-service.git
Cloning into 'gs-consuming-web-service'...
fatal: unable to access 'https://github.com/spring-guides/gs-consuming-web-service.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
leung@wuyujin coderepo %

核心错误:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

是一些SSL验证的问题。

配置

当前用户的git配置会写在当前用户目录下的.gitconfig配置文件下(如无可手动新建touch ~/.gitconfig)。
以用户wuyujin为例,git配置文件的全路径分别为:
Windows:C:\Users\wuyujin\.gitconfig
linux: /home/wuyujin/.gitconfig
macbook: /Users/wuyujin/.gitconfig

git的配置有两种方式:
通过命令行设置,对应的配置项会自动写入到配置文件(前提:你知道命令怎么写)
直接去修改配置文件(前提:你知道配置文件的格式/规则)

所需命令:

git config --global http.sslVerify false
git config --global https.sslVerify false

效果就是,配置文件会被写入以下内容:

[http]sslVerify = false
[https]sslVerify = false

另外还有 user.name user.email 等参数项可设置(此处暂不必)。

shell


leung@wuyujin coderepo % git config --global http.sslVerify false
leung@wuyujin coderepo % git config --global https.sslVerify falseleung@wuyujin coderepo % more ~/.gitconfig [http]sslVerify = false
[https]sslVerify = false
leung@wuyujin coderepo %

再次 clone ,成功。

另一种可能

在 clone 某个仓库的时候,新开窗口 clone 另一个窗口。报错。

一个一个clone就不会报错。

即: 并行clone --> 串行clone

git 命令行配置及配置文件 解决clone报错 LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443相关推荐

  1. Git报错: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

    Git报错: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 在使用Git来克隆仓库报了错误,如下: fa ...

  2. 【git】LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

    1.概述 今天git 拉取一个项目报错 [lcc@lcc ~/IdeaProjects/third]$ git clone https://github.com/xxxx/xxxx.git Cloni ...

  3. git报错:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 解决方法

    git config --global --unset http.proxy 然后再git push <你的git地址> main 接着会跳出来输入用户名和密码, 密码记得填写你的toke ...

  4. 成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

    执行以下指令下载Fabric二进制及docker镜像时出现标题所指的报错内容 curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.8 -s ...

  5. 解决方法 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

    这是禁止访问国外链接的原因 docker info 强烈建议安装 Docker 之后配置 国内镜像加速 sudo vi /etc/docker/daemon.json 粘贴 {"regist ...

  6. 【git clone 报错】fatal: unable to access ‘https://github.com/zimeng303/React.git/‘: Failed to connect

    [git clone 报错]fatal: unable to access 'https://github.com/zimeng303/React.git/': Failed to connect t ...

  7. 超快速安装Mac上的Homebrow,解决homebrow安装错误curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to

    错误 curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443 ...

  8. git clone 报错:fatal: unable to access ‘https://github.com/xxxxxxxxx/xxx.git/‘: gnutls_

    完整报错:fatal: unable to access 'https://github.com/xxxxxxx/xxxx.git/': gnutls_handshake() failed: The ...

  9. 在配置spring配置文件时各种报错,解决办法

    好久没在这上面记东西了,把以前遇到的问题整理一下贴出来,希望给同样遇到问题的朋友们一点帮助 1.配置sping配置文件时,一直报错,原来是在头部没有声明context前缀: 2.进行配置时,产生如下错 ...

最新文章

  1. __bridge 使用注意
  2. android中的json二之json的读写
  3. LeetCode算法题-Reverse Linked List(Java实现)
  4. 凯撒(Caesar)密码加密解密c语言
  5. 集合总结(Collection)
  6. 目录操作相关的系统函数
  7. 深入解析GBDT二分类算法(附代码实现)
  8. c语言stanf,stanf
  9. java中activiti框架中的排他网关使用方法,多条件判断
  10. html input 字体颜色_HTML常用标签汇总
  11. 齐次坐标和单应性矩阵
  12. 数学连乘和累加运算符号_2020中考数学 初中数学有理数计算(干货)
  13. R语言ETL工程系列:读写(read/write)
  14. 华为将全面支持鸿蒙,华为鸿蒙 2.0正式发布!明年华为手机将全面支持
  15. 功能最强大的编辑器——vi
  16. Word中大括号内公式左对齐
  17. 概率论得学习整理--番外3:二项式定理和 二项式系数
  18. 为什么保持代码整洁如此重要
  19. JDBC-通用查询功能
  20. 0基础入门学PLC太难?谈谈PLC的学习方法

热门文章

  1. 电脑配置留底2019.10
  2. 微信公众号h5分享到朋友圈,超详细的讲解
  3. 如何查看华为服务器配置信息,如何查看服务器配置分区信息
  4. 跳槽离职的那些事儿?(转)
  5. unity Mirror使用心得二(服务器端的怪物创建,及其怪物AI的行为)
  6. ESP32学习--库添加
  7. Nginx-正向代理
  8. 数据挖掘期末复习--上篇
  9. CSR867x开发基础教学 - CSR8675_sink工程如何自定义语音提示音
  10. oracle sys密码忘记了怎么办