在Git中推送提交時,消息‘src reflspec母版不匹配’我用以下方法克隆我的存儲庫:git clone ssh://xxxxx/xx.git但在我換了一些文件之后add和commit他們,我想把他們推到服務(wù)器上: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貢獻(xiàn)1863條經(jīng)驗 獲得超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 關(guān)注
- 636 瀏覽
添加回答
舉報
0/150
提交
取消