[git] git问题处理

问题集合

  1. 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

  1. 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.

  1. The solution
git config --global http.sslVerify false

from this blog solved my problem in the end.

posted @ 2024-10-19 22:05  dysonnnn  阅读(11)  评论(0编辑  收藏  举报