我有这条消息推送我的回购
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)
origin遥控器的 URL格式不正确:
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)
该git@部分来自一个SSH URL,但其余的看起来像一个HTTP URL。您可以像这样更新它们:
如果您想使用 SSH URL,例如
git remote set-url origin git@github.com:Saifou/testForge.git
Run Code Online (Sandbox Code Playgroud)
注意,在这种情况下,我们也转换/为:之后github.com。
如果您想使用 HTTPS 网址,例如
git remote set-url origin https://github.com/Saifou/testForge.git
Run Code Online (Sandbox Code Playgroud)完成后,git remote -v再次运行以确保两个 URL 都已更新。
| 归档时间: |
|
| 查看次数: |
10665 次 |
| 最近记录: |