当前位置:   article > 正文

【Github】报错 fatal: unable to access ‘https://gitee.com/...‘: Could not resolve host: gitee.com

【Github】报错 fatal: unable to access ‘https://gitee.com/...‘: Could not resolve host: gitee.com

解决方法:把https模式换成ssh模式

第一步:用git remote -v查看使用的是https还是ssh。

git remote -v


 

第二步:使用git remote set-url命令将远程URL从HTTPS更改为SSH

git remote set-url origin git@github.com:xxxx/xxxxx.git

参考链接:fatal: unable to access 'https://gitee.com/...': Could not resolve host: gitee.com - youlj - 博客园

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/857980
推荐阅读
相关标签
  

闽ICP备14008679号