windows下git pull超时,ping不通github

报错

ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

解决办法

修改hosts

最后加一行,文件位置:C:\Windows\System32\drivers\etc\hosts

140.82.113.3 github.com
注意

github的IP地址可能会变,去ipaddress.com查询即可

亲测有效

相关推荐

  1. Windowsping IP+端口的方法

    2024-01-26 09:14:01       72 阅读
  2. ubuntu无法访问和pinggithub的一种解决方法

    2024-01-26 09:14:01       59 阅读
  3. Ubuntu 4G模块域名ping不通

    2024-01-26 09:14:01       29 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-26 09:14:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-26 09:14:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-26 09:14:01       87 阅读
  4. Python语言-面向对象

    2024-01-26 09:14:01       96 阅读

热门阅读

  1. API设计模式:REST、GraphQL、gRPC与tRPC全面解析

    2024-01-26 09:14:01       46 阅读
  2. PyQt中的信号/槽以及纯python实现信号/槽设计模式

    2024-01-26 09:14:01       60 阅读
  3. 五、MySQL的备份及恢复

    2024-01-26 09:14:01       49 阅读
  4. uniapp 框架搭建及使用

    2024-01-26 09:14:01       42 阅读
  5. vue和react的运行机制

    2024-01-26 09:14:01       51 阅读
  6. 如何用GPT制作技术路线图?

    2024-01-26 09:14:01       46 阅读