美文网首页
git clone项目失败

git clone项目失败

作者: 尹_路人 | 来源:发表于2021-10-20 19:10 被阅读0次

有段时间没用github了
今天想把一个demo传上去,
结果在github官网上创建了一个空仓库之后,
想通过终端git clone git@github.com:****.git 的时候报错了

  • 有的时候是这个错

    ssh_dispatch_run_fatal: Connection to 20.205.243.166 port 22: Broken pipe
    
  • 有的时候是这个错

    Connection reset by 20.205.243.166 port 22
    

我也不知道咋回事,搜索了一番,尝试ping命令

ping github.com 超时。。。
ping baidu.com 正常

似乎知道是哪里的问题了

找到hosts文件
添加如下的配置

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

再去ping github.com 不超时了

再去clone项目 ok了

相关文章

  • git clone remote: HTTP Basic: Ac

    git clone 项目失败,报下面的错误信息:$ git clone http://192.168.0.141...

  • git clone 大文件

    1 2 3 LFS 4 depth 使用Git clone代码失败的解决方法 Git_Clone大项目超过1G失败...

  • git clone 项目失败

    [参考link][参考link][参考link][参考link][参考link][参考link] 大概率是当前网络...

  • git clone项目失败

    有段时间没用github了今天想把一个demo传上去,结果在github官网上创建了一个空仓库之后,想通过终端gi...

  • git clone fatal: The remote end

    git clone error随着项目的更新.git越来越大,最近在一台新的mac上clone项目时一直失败,出现...

  • Mac git 克隆失败

    git clone error随着项目的更新.git越来越大,最近在一台新的mac上clone项目时一直失败,出现...

  • 无标题文章

    git clone项目,响应时间太长导致clone失败,可以配置git的代码响应时间 还有一个提议是后缀加上 --...

  • 关于Git命令

    1:克隆项目git clone XXXX(项目地址)例子: git clone git://git.kernel....

  • SourceTree报错: templates not foun

    今天clone Git上面的项目的时候 sourcetree 报错,克隆失败,错误如下 templates not...

  • git 常用命令

    1、clone项目 git clone 仓库地址 直接clone指定分支git clone -b 分支名 仓库地址...

网友评论

      本文标题:git clone项目失败

      本文链接:https://www.haomeiwen.com/subject/wvtxaltx.html