Git bash登录"错误:src refspec master与任何"

时间:2014-07-12 12:32:46

标签: git bash

所以,我正在尝试学习Git的基础知识,但是我遇到了通过Git Bash登录的问题。我正在使用Windows 7。

首先我在我的Github帐户中创建了一个测试存储库,而不是尝试从命令行推送它,如下所示:

$ git remote add origin https://github.com/martin-dzhonov/Test.git
$ git push -u origin master

我收到有关用户名和密码的提示,输入后我得到了

error: src refspec master does not match any.
error: failed to push some refs to https://github.com/martin-dzhonov/Test.git

帮助?

1 个答案:

答案 0 :(得分:1)

事实证明我是个白痴。我还没有更改cmd中的目录,所以我试图推送一个不存在的仓库。