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