在Git中推送提交时,消息‘src reflspec母版不匹配’我用以下方法克隆我的存储库: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'
3 回答
小唯快跑啊
TA贡献1863条经验 获得超2个赞
error: src refspec master does not match any. error: failed to push some refs to 'git@github ... .git'
touch README git add README git add (all other files) git commit -m 'reinitialized files' git push origin master --force # <- caution, --force can delete others work.
- 3 回答
- 0 关注
- 609 浏览
添加回答
举报
0/150
提交
取消