github - git: 'remote-hittps' 不是 git 命令。见'git --help'
问题描述
我第一次使用 git bash,当我尝试将远程设置为上游时,我不断收到此错误。这有点令人困惑,因为我根本不使用 remote-hittps。
omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main)
$ git status
On branch main
nothing to commit, working tree clean
omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main)
$ git remote -v
origin hittps://github.com/theoystertoaster/MazeSolver.git (fetch)
origin hittps://github.com/theoystertoaster/MazeSolver.git (push)
omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main)
$ git push
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin main
omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main)
$ git push --set-upstream origin main
git: 'remote-hittps' is not a git command. See 'git --help'.
The most similar command is
remote-https
omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main)
解决方案
您输入了错误的网址。它从hittps
应该开始的时间开始https
。您可以通过执行以下操作来解决此问题:
$ git remote set-url origin https://github.com/theoystertoaster/MazeSolver.git
推荐阅读
- python - 从python中的多个字典创建json文件
- excel - 带有 if 语句和计算的 Excel 公式
- python - 如何在熊猫数据框中选择最小值也保存我的字符串数据
- swift - 在 swift 4.1 中使用 nil 合并进行隐式展开时出现意外的“some()”
- java - Tomcat正在运行但在尝试访问我的html时给出404,但安装后显示tomcat的默认页面
- python - 变分自动编码器:InvalidArgumentError:不兼容的形状:[100,5] 与 [100]
- javascript - 移除事件监听器实现
- xml - XSLT 1.0:子串多个值
- django - 从 Django 表单集中获取未删除的表单
- javascript - 如何使用 element.offsetBottom?