远程分支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 //远程分支