git clone项目时,出错:Failed to connect to github.com port 443 after 21010 ms: Couldn‘t connect to server

原因:网速太慢,可能由于挂了梯子网速慢

解决方法:取消代理

  1. 设置代理:
    git config--global https.proxy
  2. 取消代理:
    git config --global --unset https.proxy

  3. 重新clone:
    git clone ...
  4. 解决:
    git clone项目时,出错:Failed to connect to github.com port 443 after 21010 ms: Couldn‘t connect to server_第1张图片

参考:https://zhuanlan.zhihu.com/p/553494064#:~:text=%E5%8E%9F%E5%9B%A0%EF%BC%9A%E7%BD%91%E9%80%9F%E5%A4%AA%E6%85%A2%20%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95%EF%BC%9A%E5%8F%96%E6%B6%88%E4%BB%A3%E7%90%86%201%E3%80%81%E8%AE%BE%E7%BD%AE%E4%BB%A3%E7%90%86%EF%BC%9A%20git%20config--global%20https.proxy2%E3%80%81%E5%8F%96%E6%B6%88%E4%BB%A3%E7%90%86%EF%BC%9A%20git,config%20--global%20--unset%20https.proxy3%E3%80%81%E9%87%8D%E6%96%B0clone%20git%20clone%20%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6icon-default.png?t=N7T8https://zhuanlan.zhihu.com/p/553494064#:~:text=%E5%8E%9F%E5%9B%A0%EF%BC%9A%E7%BD%91%E9%80%9F%E5%A4%AA%E6%85%A2%20%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95%EF%BC%9A%E5%8F%96%E6%B6%88%E4%BB%A3%E7%90%86%201%E3%80%81%E8%AE%BE%E7%BD%AE%E4%BB%A3%E7%90%86%EF%BC%9A%20git%20config--global%20https.proxy2%E3%80%81%E5%8F%96%E6%B6%88%E4%BB%A3%E7%90%86%EF%BC%9A%20git,config%20--global%20--unset%20https.proxy3%E3%80%81%E9%87%8D%E6%96%B0clone%20git%20clone%20%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6

你可能感兴趣的:(git报错,git,github)