致命:不支持协议“git@https”

Sai*_*ali 1 github

我有这条消息推送我的回购

C:\Users\sejjilali\Documents\Test forge>git push --set-upstream origin master
**fatal: protocol 'git@https' is not supported**
Run Code Online (Sandbox Code Playgroud)

我不知道如何解决它,问题是在另一台计算机上一切正常。也许是因为他们让我找到了一家公司?

这是我的远程配置:

C:\Users\sejjilali\Documents\Test forge>git remote -v
origin  git@https://github.com/Saifou/testForge.git (fetch)
origin  git@https://github.com/Saifou/testForge.git (push)
Run Code Online (Sandbox Code Playgroud)

Chr*_*ris 6

origin遥控器的 URL格式不正确:

C:\Users\sejjilali\Documents\Test forge>git remote -v
origin  git@https://github.com/Saifou/testForge.git (fetch)
origin  git@https://github.com/Saifou/testForge.git (push)
Run Code Online (Sandbox Code Playgroud)

git@部分来自一个SSH URL,但其余的看起来像一个HTTP URL。您可以像这样更新它们:

完成后,git remote -v再次运行以确保两个 URL 都已更新。