我用以下命令克隆我的存储库:
git clone ssh://xxxxx/xx.git
但在我更改了一些文件并对其执行add
和commit
操作后,我希望将它们推送到服务器上:
git add xxx.php
git commit -m "TEST"
git push origin master
但是我得到的错误是:
error: src refspec master does not match any.
error: failed to push some refs to 'ssh://xxxxx.com/project.git'
发布于 2012-09-20 02:40:32
当我收到src-refspec错误时,上面的解决方案都不起作用。
我的工作流程:
我修复了这个错误,简单地用创建了一个新的分支,然后再次推送。(奇怪的是,我不能简单地重命名分支-它给了我fatal: Branch rename failed
)。
https://stackoverflow.com/questions/4181861
复制相似问题