在使用git push -u origin master时,始终报下面的错误:

Warning: Identity file C:/Program not accessible: No such file or directory.
ssh: Could not resolve hostname files/git/.ssh/id_rsa: Name or service not known
fatal: Could not read from remote repository.

解决的历程:

  • 重新处理id_rsa秘钥的东西,本地生成秘钥,公钥,然后把公钥放到github上的key中,参考教程:链接1。结果是没有效果,依然存在上述错误。
  • 链接2中说可能是网络问题,或者是github服务器的锅,不是我这边本地的锅。额,醉了。。。
  • 想到用http协议试下,
git remote add origin https://github.com/xxx.git

查看remote状态

git remote -v

然后再

git push -u origin master

此时报错是:

fatal: unable to access 'https://github.com/xxx.git/': Failed to connect
to github.com port 443: Timed out

上述的解决方法是:链接3
再使用

ipconfig /flushdns

再push一下,搞定。

git push时报错Warning: Identity No such file or directory Name or service not known相关推荐

  1. git push时报错fatal: Could not read from remote repository.

    后来发现,出现这个问题是因为仓库地址不对 使用如下命令先查看一下: $ git remote -v 发现跟github的地址不一致 然后在终端输入:git remote set-url origin ...

  2. git push时报错error: File: xxx 252.15 MB, exceeds 100.00 MB.

    原因: 文件过大,不能超过100M 1. 查看哪个文件超过了100M git rev-list --objects --all | grep xxx 2. 从缓存中删除 git filter-bran ...

  3. Git上传代码时报错 Warning: Permanently added ‘gitee.com,212.64.62.174‘ (ECDSA) to the list of known host...

    Git上传代码时报错 Warning: Permanently added 'gitee.com,212.64.62.174' (ECDSA) to the list of known host... ...

  4. 解决git在push时报错fatal: unable to access ‘https://github.com/sup0C/a.git/‘: errno 10054

    解决git在push时报错fatal: unable to access 'https://github.com/sup0C/a-repository-for--git/': OpenSSL SSL_ ...

  5. git push 报错Push rejected、 remote unpack failed 、unpacker error、 failed to push some refs to

    git push 报错Push rejected. remote unpack failed .unpacker error. failed to push some refs to 1.error: ...

  6. git push报错:fatal: unable to access ‘https://XXXX.git/‘: Peer‘s Certificate issuer is not recognized.

    推镜像的时候,git push报错:fatal: unable to access 'https://XXXX.git/': Peer's Certificate issuer is not reco ...

  7. git push 报错 Empty reply from server 或 Failed to connect to github.com port 443: Time out

    git push 报错 Empty reply from server 或 Failed to connect to github.com port 443: Time out 问题出现 报错信息 问 ...

  8. git clone时报错 Empty reply from server

    使用git clone 时报错: wujc@wujc-VirtualBox:~/Desktop/rk3288$ sudo git clone https://github.com/FireflyTea ...

  9. git push 报错 ---error: commit 8aa8e31: email address yin.jiaqing@.....com is not registered in your

    git push 报错: error: commit 8aa8e31: email address yin.jiaqing@haustart.com is not registered in your ...

最新文章

  1. CoordinatorLayout 和 AppBarLayout 实现折叠效果 底部带阴影的处理方法
  2. Android自定义控件前导基础知识学习(一)——Canvas
  3. 一些常用的gcc指令(持续更新)
  4. 简单介绍基于Spring Boot的项目骨架使用
  5. Request对象及其API应用实操
  6. input发送a.jax_Java REST JAX-RS 2.0 –如何处理日期,时间和时间戳记数据类型
  7. 手机聊天记录怎么备份技巧分享,再也不用担心数据丢失了
  8. RHadoop(一)
  9. 自定义windows快捷键(autohotkey)的办法
  10. 如何用计算机进行机械制图,机械制图与机械CAD的有机结合的探究
  11. 2019年香港科大EMBA校友会年度盛会在珠海圆满落幕
  12. pta--输入一个正整数n,再输入n个整数,输出其中的偶数。要求相邻数字中间用一个空格分开,行末不得有多余空格
  13. pandas中使用fillna函数填充NaN值
  14. 大数乘法——大数问题
  15. C语言编程>第三周 ④ 求100之内的素数。
  16. MATLAB算法实战应用案例精讲-【数据分析】时序异常检测(附实战应用案例)
  17. bim综合软件:一次性快速解锁所有轴网,生成轴网
  18. Android Studio_day02 实际应用登录界面
  19. Maven(保姆级全详)新手入门
  20. The organization of memory

热门文章

  1. Android根据经纬度获取地址,眼前一亮
  2. vue小程序开发(一) uni-app基本学习
  3. 如何利用Parasoft Jtest提高Java测试ROI
  4. 虚拟机ping主机和外网ping不通的解决办法
  5. ❀工信工实验参考——《大物5.8A声波反射衍射干涉》
  6. CANoe文件扩展名整理
  7. 生活的苦 VS 学习的苦
  8. Source Insight 工具栏折叠后还原
  9. 定时执行批处理 - 定时执行专家
  10. Nexus 401 Unauthorized