【发布时间】:2021-04-14 02:26:27
【问题描述】:
无法将现有的 git 存储库推送到远程。
以前没有发生过。我已经尝试安装最新版本的 git 但仍然无法推送。
git push --set-upstream origin master
git: 'remote-httpshttps' is not a git command. See 'git --help'.
【问题讨论】:
-
你有一个新的分支 (
master) 想要推送?或者应该怎么理解"git cannot push an existing repository..."。还是master分支已经是一个remote-branch? -
remote-httpshttps相当可疑。请参阅git remote show origin并通过删除双httpshttps://来修复 URL
标签: git git-push git-remote git-repo