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
上傳文件過慢
http.postBuffer默認上限為1M,所以將上限改大就行
git config --global http.postBuffer 524288000
后續遇到再更