格里特:![远程拒绝] HEAD->裁判/发布/大师(无新变化) [英] Gerrit: ! [remote rejected] HEAD -> refs/publish/master (no new changes)

查看:97
本文介绍了格里特:![远程拒绝] HEAD->裁判/发布/大师(无新变化)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进行了一些更改,将其提交,然后将分支推送到Gerrit( git push gerrit ).现在,我的更改未出现在Gerrit中,并且我认为这是因为我手动推送了更改,而不是使用git评论.当我现在运行 git review 时,我收到此错误:

I made some changes, committed them and pushed the branch to Gerrit (git push gerrit). Now my changes don't appear in Gerrit and I assume this is because I pushed the changes manually instead of using git review. When I run git review now, Im getting this error:

remote: Processing changes: refs: 1, done    
To ssh://user@gerrit-host:29418/Project
! [remote rejected] HEAD -> refs/publish/master (no new changes)
error: failed to push some refs to 'ssh://user@gerrit-host:29418/Project'

如何告诉Gerrit我的变更集需要进行审核?

How can I tell Gerrit that my changeset needs to be reviewed?

推荐答案

我认为问题在于提交已在远程分支中.这就是为什么没有新的变化进行推送的原因.首先尝试删除来自远程分支的提交,然后将提交推送到审阅分支.

I think the problem is that the commit already in remote branch. That is why no new changes on push. First try to remove the commit from remote branch, and then push the commit to review branch.

这篇关于格里特:![远程拒绝] HEAD->裁判/发布/大师(无新变化)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆