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

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

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

git push --set-upstream origin master
git: 'remote-httpshttps' is not a git command. See 'git --help'.
ys121212 回答:git 无法推送现有存储库。 'remote-httpshttps' 不是 git 命令

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

,

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

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

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

本文链接:https://www.f2er.com/1135034.html

大家都在问