git 无法推送现有存储库 'remote-httpshttps' 不是 git 命令

问题描述

无法将现有的 git 存储库推送到远程。

以前没有发生过。我已经尝试安装最新版本的 git 但仍然无法推送。

git push --set-upstream origin master
git: 'remote-httpshttps' is not a git command. See 'git --help'.

解决方法

不知道为什么..... 我关闭了 git bash,然后打开了一个新的。然后就修好了:(

,

如果您有远程存储库的 HTTPS URL,请先尝试:

git remote set-url origin https://url/of/remote/repository

然后再试一次 git push -u origin master

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...