git push时报错Warning: Identity No such file or directory Name or service not known
在使用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相关推荐
- git push时报错fatal: Could not read from remote repository.
后来发现,出现这个问题是因为仓库地址不对 使用如下命令先查看一下: $ git remote -v 发现跟github的地址不一致 然后在终端输入:git remote set-url origin ...
- 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 ...
- 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... ...
- 解决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_ ...
- 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: ...
- 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 ...
- 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 问题出现 报错信息 问 ...
- git clone时报错 Empty reply from server
使用git clone 时报错: wujc@wujc-VirtualBox:~/Desktop/rk3288$ sudo git clone https://github.com/FireflyTea ...
- 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 ...
最新文章
- CoordinatorLayout 和 AppBarLayout 实现折叠效果 底部带阴影的处理方法
- Android自定义控件前导基础知识学习(一)——Canvas
- 一些常用的gcc指令(持续更新)
- 简单介绍基于Spring Boot的项目骨架使用
- Request对象及其API应用实操
- input发送a.jax_Java REST JAX-RS 2.0 –如何处理日期,时间和时间戳记数据类型
- 手机聊天记录怎么备份技巧分享,再也不用担心数据丢失了
- RHadoop(一)
- 自定义windows快捷键(autohotkey)的办法
- 如何用计算机进行机械制图,机械制图与机械CAD的有机结合的探究
- 2019年香港科大EMBA校友会年度盛会在珠海圆满落幕
- pta--输入一个正整数n,再输入n个整数,输出其中的偶数。要求相邻数字中间用一个空格分开,行末不得有多余空格
- pandas中使用fillna函数填充NaN值
- 大数乘法——大数问题
- C语言编程>第三周 ④ 求100之内的素数。
- MATLAB算法实战应用案例精讲-【数据分析】时序异常检测(附实战应用案例)
- bim综合软件:一次性快速解锁所有轴网,生成轴网
- Android Studio_day02 实际应用登录界面
- Maven(保姆级全详)新手入门
- The organization of memory