Git常见问题汇总

Git常见问题汇总及解决方案

访问github速度过慢

DNS请求问题

需要查一下github.com这个地址的ip,在本地dns缓存即hosts文件,具体路径为C:WindowsSystem32driversetchosts`加入映射关系。ipconfig/flushdns再重新清一下dns缓存。

140.82.114.4	github.com
199.232.5.194	github.global.ssl.fastly.net

OpenSSl...errno 10054

证书没有签署及HTTPS验证不通过

git config --global http.sslVerify "false"

TimeOut errno 443

常见问题之一,可能是梯子问题导致的。

重置一下代理就可以了

git config --global --unset http.proxy

远程库与本地库不一致问题

远程库与本地库不一致造成的,在hint中提示把远程库同步到本地库

git pull --rebase origin main

所有github.io都打不开

dns服务商出了问题。可以采用软件管家更换dns服务商

  • 如果宁是腾讯电脑管家可以采用工具箱中的dns选优更换dns服务商
  • 比较良心的114DNS:114.114.114.114

后续遇到再更


原文地址:https://www.cnblogs.com/DengSchoo/p/14757200.html