[git] git问题处理
问题集合
- The TLS connection was non-properly terminated
执行git clone 指令的时候报错
dysonnnn@dysonnnn-KPRC-WX0:~$ git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
Cloning into '/home/dysonnnn/.oh-my-zsh'...
fatal: unable to access 'https://github.com/ohmyzsh/ohmyzsh.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
解决方法:
参考 stackoverflow The TLS connection was non-properly terminated
- For anyone facing this issue after 2020, Use ipv4 by using "--ipv4" or "-4" flag in your git command.
ex: git clone <git url> -4
I am not sure why this happens but sometimes IPV6 connections are not able to establish a TLS connection but IPV4 connections have no issues.
- The solution
git config --global http.sslVerify false
from this blog solved my problem in the end.