致命:不支持协议“https”

问题描述 投票:1回答:2

在提交并添加原点后,每当我运行命令git push -u origin master时都会收到此错误。怎么解决这个?

git github https fatal-error
2个回答
1
投票

可能是当您在本地计算机上安装git时,您没有选择“使用本机Windows安全通道库”

我也有这个问题,在我删除git并使用本机Windows库安装后,它工作了

enter image description here


0
投票

尝试删除原点

git remote remove origin

并通过再次添加原点

git remote add origin https://github.com/YourUsername/YourRepo.git

当我遇到完全相同的问题时,它对我有用,因为我的起源已被破坏。

使用git bash,qazxsw poi没有显示任何异常。但是使用Win10 cmd.exe qazxsw poi在git remote -v之前就向我展示了一个额外的角色

我认为这个额外的角色可能是通过将链接从github复制粘贴到gitbash而出现的。

我不需要重新安装git

© www.soinside.com 2019 - 2024. All rights reserved.