在将git存储库克隆到名为"hggit"的目录并使用以下命令设置远程源之后:
mbm:hggit my name$ git remote add origin git@code.getpantheon.com:"mystringhere"
在编辑文件后,当我处于子目录中时,我使用以下命令提交了更改:
mbm:handelgroup michaelmausler$ git commit -m "first commit"
[master 5a29bc8] first commit
1 files changed, 2 insertions(+), 2 deletions(-)
我尝试推送文件更改,但收到以下错误信息。
mbm:hggit myname$ git push origin master
error: src refspec master does not match any.
error: failed to push some refs to 'git@code.getpantheon.com:"mystringhere"'