从命令行提交到Github时出错

从命令行提交到Github时出错,github,Github,每次我尝试从命令行提交对GitHub的更改(在从GitHub完成下面的教程之后),我都会收到erorr“致命:我不处理协议‘https:https’” 下面是GitHub的简短教程 Create a new repository on the command line touch README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/tu

每次我尝试从命令行提交对GitHub的更改(在从GitHub完成下面的教程之后),我都会收到erorr“致命:我不处理协议‘https:https’”

下面是GitHub的简短教程

Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/tuzion/baby-companion.git
git push -u origin master
谢谢


--顺便说一句,我在Mac上。

您是否将SSH密钥输入Github帐户设置


检查您的帐户设置/SSH密钥。

改用以git:开头的URL。您有什么版本的git?它可能不支持https协议…@lego,当我这样做时,它会说“致命:远程源已经存在。”我应该指定在“git push-u源主机”之后得到错误step@EugenConstantinDinca1.8.3.2第一行写着“如果您决定不使用推荐的HTTPS方法[…]”。我以为我是?在我尝试生成密钥之前,是否有方法启用它?我宁愿只使用HTTPS。