zoukankan      html  css  js  c++  java
  • 记录一下我的git连接不上GitHub问题

    1.日常操作,提交代码,报错误下:

      

    $ git clone git@github.com:hanchao5272/myreflect.git
    Cloning into 'myreflect'...
    ssh_dispatch_run_fatal: Connection to 13.250.177.223 port 22: Software caused connection abort
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

      

    2.开始百度:

      2.1重置了本机用户名和邮箱,重新生成公钥,失败

      2.2看到有人说本地邮箱和生成公钥邮箱必须一致,必须是GitHub登陆的邮箱,于是我又统一了一下了GitHub和本机的邮箱,失败

      2.3然后看到有大神说是本机dns的问题,按照大神的办法,解决。

      

    1.首先你需要打开命令台,测试一下看是不是连接不上:
        ping github.com
        如果显示连接失败,那就往下看
    2.打开C:WindowsSystem32driversetchosts
        在文件内底部写入以下两个地址
        192.30.255.112  github.com git 
        185.31.16.184 github.global.ssl.fastly.net  
    3.再到命令台测试一下,如果成功则可以正常使用git了;
    

      

    *补充:我犯了一个错误,就是再GitHub的邮箱控制的地方,把我的邮箱设置成不公开了,于是,是的提交代码的时候报错,说我邮箱有问题,于是又到GitHub把邮箱设置成公开。

    大神地址:https://blog.csdn.net/hanchao5272/article/details/79393393

  • 相关阅读:
    LOJ #6183 看无可看
    BZOJ 5467 Slay the Spire
    BZOJ 5306 [HAOI2018] 染色
    BZOJ 2784 时间流逝
    BZOJ4911: [Sdoi2017]切树游戏
    min-max 容斥
    BZOJ 5475: [WC 2019] 数树
    BZOJ 2810 [Apio2012]kunai
    Codeforces round 1083
    详解大数据数据仓库分层架构
  • 原文地址:https://www.cnblogs.com/webSong/p/11654906.html
Copyright © 2011-2022 走看看