fatal: unable to access 'https://gitee.com/...': Could not resolve host: gitee.com


把https模式换成ssh

用git remote -v查看使用的是https还是ssh等
$ git remote -v
> origin https://github.com/USERNAME/REPOSITORY.git (fetch)
> origin https://github.com/USERNAME/REPOSITORY.git (push)

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

$ git remote set-url origin git@github.com:USERNAME/REPOSITORY.git

然后进行推送等操作吧


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM