美文网首页
git push 报src refspec xxx does n

git push 报src refspec xxx does n

作者: 西南有高楼 | 来源:发表于2018-08-22 19:46 被阅读0次

远程分支branch_a是其他人建的,我现在要把我自己分支的修改,提到这个分支上去。

初次提交将其提交到本地仓库

git add filename

git commit -m "add features"

提交到远程仓库

git push origin branch_a

错误信息如下:

error: src refspec xxx does not match any.

error: failed to push some refs to ‘git@xxxxxxx’

执行git pull origin xxx ,pull是可以正常拉取的。

解决方案:

git push origin HEAD:branch

相关文章

网友评论

      本文标题:git push 报src refspec xxx does n

      本文链接:https://www.haomeiwen.com/subject/qpoyiftx.html