Git 找不到https的远程帮助程序

Git 找不到https的远程帮助程序,git,Git,我正在尝试将远程存储库连接到本地存储库。在终端中,我没有写“https”,而是无意中输入了“hhtps”。有办法解决此问题吗?在.git/config中编辑远程设备的url您可以使用git remote set url更改远程设备的url # Create a remote with the wrong URL git remote add origin hhtps://github.com/myusername/myapp.git # Fix the URL git remote set-u

我正在尝试将远程存储库连接到本地存储库。在终端中,我没有写“https”,而是无意中输入了“hhtps”。有办法解决此问题吗?

在.git/config中编辑远程设备的url

您可以使用
git remote set url
更改远程设备的url

# Create a remote with the wrong URL
git remote add origin hhtps://github.com/myusername/myapp.git

# Fix the URL
git remote set-url origin https://github.com/myusername/myapp.git

你是怎么写的?什么命令?如果是git,您应该能够读取配置文件,并且有删除/添加url.git remote add origin的命令hhtps://github.com/“myusername”/“myapp”.git?你应该能够删除它,然后添加正确的。非常感谢!知道所有答案。我看到人们一直在投票反对这个答案。类似这样的情况(修复打字错误),我直接在配置文件中处理它们。只是说。。。