美文网首页
git 出现fatal: unable to access XX

git 出现fatal: unable to access XX

作者: 简小咖 | 来源:发表于2022-12-05 22:26 被阅读0次

遇到问题:fatal: unable to access 'https://github.comxxxxxxxxxxx' Failed to connect to xxxxxxxxxxxxx

解决方案

将命令行里的http改为git重新执行。
https://github.com/username/xxx.git 为例
进入项目,终端依次执行:

git remote rm origin
git remote add origin git@github.com:username/xxx.git
git push origin 分支名

搞定!

相关文章

网友评论

      本文标题:git 出现fatal: unable to access XX

      本文链接:https://www.haomeiwen.com/subject/ymoifdtx.html