【Git】Git常见问题汇总

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

目录

  • 访问速度过慢
  • openssl errno10054
  • Timeout errno 443
  • 远程库与本地库不一致
  • github.io无法打开
  • 上传文件过慢

访问github速度过慢

DNS请求问题

需要查一下github.com这个地址的ip,在本地dns缓存即hosts文件,具体路径为C:\Windows\System32\drivers\etc\hosts`加入映射关系。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

上传文件过慢

image-20211010204303770

http.postBuffer默认上限为1M,所以将上限改大就行

git config --global http.postBuffer 524288000

后续遇到再更


posted @ 2021-10-10 20:45  DengSchoo  阅读(119)  评论(0编辑  收藏  举报