git报错no new changes、does not match any

git merge后,push代码到Gerrit失败,提示no new changes
git push报错 ! [remote rejected] HEAD -> refs/for/ (no new changes)
解决方法:
git config remote.origin.push refs/heads/分支名:refs/for/分支名
然后再去push就可以啦~~快去试试吧
下面这个报错也可以这样解决哦
error: src refspec refs/for/分支名 does not match any.
error: failed to push some refs to ‘ssh://…’
