git 命令行配置及配置文件 解决clone报错 LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
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相关推荐
- 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 ...
- 【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 ...
- git报错:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 解决方法
git config --global --unset http.proxy 然后再git push <你的git地址> main 接着会跳出来输入用户名和密码, 密码记得填写你的toke ...
- 成功解决: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 ...
- 解决方法 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443
这是禁止访问国外链接的原因 docker info 强烈建议安装 Docker 之后配置 国内镜像加速 sudo vi /etc/docker/daemon.json 粘贴 {"regist ...
- 【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 ...
- 超快速安装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 ...
- 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 ...
- 在配置spring配置文件时各种报错,解决办法
好久没在这上面记东西了,把以前遇到的问题整理一下贴出来,希望给同样遇到问题的朋友们一点帮助 1.配置sping配置文件时,一直报错,原来是在头部没有声明context前缀: 2.进行配置时,产生如下错 ...
最新文章
- __bridge 使用注意
- android中的json二之json的读写
- LeetCode算法题-Reverse Linked List(Java实现)
- 凯撒(Caesar)密码加密解密c语言
- 集合总结(Collection)
- 目录操作相关的系统函数
- 深入解析GBDT二分类算法(附代码实现)
- c语言stanf,stanf
- java中activiti框架中的排他网关使用方法,多条件判断
- html input 字体颜色_HTML常用标签汇总
- 齐次坐标和单应性矩阵
- 数学连乘和累加运算符号_2020中考数学 初中数学有理数计算(干货)
- R语言ETL工程系列:读写(read/write)
- 华为将全面支持鸿蒙,华为鸿蒙 2.0正式发布!明年华为手机将全面支持
- 功能最强大的编辑器——vi
- Word中大括号内公式左对齐
- 概率论得学习整理--番外3:二项式定理和 二项式系数
- 为什么保持代码整洁如此重要
- JDBC-通用查询功能
- 0基础入门学PLC太难?谈谈PLC的学习方法