美文网首页
git 报错 protocol 'https' is not s

git 报错 protocol 'https' is not s

作者: ahalshai | 来源:发表于2020-10-14 11:34 被阅读0次

前情不赘述,git常规提交

git push origin master  //报错protocol 'https' is not supported

查阅得到
https://stackoverflow.com/questions/56603911/how-to-fix-this-error-fatal-protocol-https-is-not-supported

https://stackoverflow.com/questions/53988638/git-fatal-protocol-https-is-not-supported
总结以下就是不管clone还是push时报这种错,都是因为你设置的远程仓库url“不够干净”导致的,可能是你自己按键的问题,或者复制源有问题,在url前面加上了多余字符
解决办法

git remote set-url origin 你的url

然后可以用

git config --show-origin --get remote.origin.url

或者直接进配置文件查看,总之保证你的url一定要“干净”

相关文章

网友评论

      本文标题:git 报错 protocol 'https' is not s

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