git之fatal: unable to access 'https://git.oschina.net/pcmpcs/library.git/': Could not resolve host问题
来源:互联网 发布:淘宝swot分析矩阵图 编辑:程序博客网 时间:2024/05/16 17:30
今天想把项目放到github上,发现github创建私有的项目要收取每月7美元,所以干脆放到了国内的代码托管仓库git.oschina.cn上了。
但是遇到如问题:fatal: unable to access ‘https://git.oschina.net/pcmpcs/library.git/‘: Could not resolve host: git.oschina.net
问题原因:
我以前用的是ssh地址做的远程通信地址,而这次是用的是https,因为很久没用,所以忘记了以前是用ssh的了。
解放办法如下:
$git commit -v //查看当前远程服务器地址
发现是ssh的,所以我用https地址一直报错。
做如下修改:
通过如上命令修改了地址方式,再次通过
git remote -v 发现已经变成了https协议了。
OK,可以正常push了。
参考链接
0 0
- git之fatal: unable to access 'https://git.oschina.net/pcmpcs/library.git/': Could not resolve host问题
- fatal: unable to access 'https://github.com/gmarik/Vundle.vim.git/': Could not resolve host: github.
- unable to access 'https://github.com/apache/incubator-rocketmq.git/': Could not resolve host: github
- Git错误fatal: unable to access 'https://github.com/****.git/': Couldn't resolve host 'github.com'
- fatal: unable to access 'https://github.com/...': Could not resolve host: github.com
- iOS - 解决fatal: unable to access Could not resolve host: github.com
- hexo提交报错 unable to access 'https://github.com/*/*.github.io.git/': Couldn't resolve host 'github.com
- remote: Permission to xxxxx/javaeelzw.git denied to xxxx. fatal: unable to access 'https://git
- git clone 遇到问题:fatal: unable to access
- 【iOS开发】Git错误fatal: unable to access 'https://github.com/Hanrovey/Demo_RuntimeExchangeMethod.git/
- 【git】fatal: unable to access 'https://github.com/top-think/framework.git/'
- git之error: failed to push some refs to 'https://git.oschina.net问题解决
- fatal: Authentication failed for 'https://git.oschina.net/xxxxx/'
- git 出现错误 Could not resolve host: github.com
- git clone出现fatal: unable to access 'https://': SSL certificate problem: self signed certificate in c
- fatal: unable to access 'https://github.com/taoge1024/kityminder.git/': SSL cert ificate problem: un
- git clone出现fatal: unable to access 'https://': SSL certificate problem: self signed certificate in
- 遇到问题:push的时候出现fatal: Authentication failed for 'https://git.oschina.net/andthink/zsxw_android.git/'问
- ALGO-29 算法训练 校门外的树
- PAT-A 1027. Colors in Mars (20)
- 欢迎使用CSDN-markdown编辑器
- Java中的equals和hashCode
- 基于canvas的二维码邀请函生成插件
- git之fatal: unable to access 'https://git.oschina.net/pcmpcs/library.git/': Could not resolve host问题
- Struts——开源MVC框架
- 半年总结
- (转)天才抵不过天时:一群金融天才的两次灭顶之灾
- HDU 1043 Eight
- Light OJ 1282 Leading and Trailing
- 数据结构---串的模式匹配算法介绍
- atexit函数&&t(粘滞位)用途及测试&&FILE结构体
- mybatis generator配置独立sequence