Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 gerrit 进行代码审查。在合并更改时,我收到诸如“rebase you change”之类的错误。我认为这是因为父母的变化。我想知道在这种情况下父母是什么。以及 gerrit 如何决定哪个应该是上载以供审查的任何更改的父提交?
通常父母将是当前的“主人”(HEAD)。因此,您必须使用 gerrit 中显示的命令来检索您的更改。然后做一个:
git rebase master
将您的更改重新设置为当前的主人。
如果一切顺利(并且在最终调用“ git rebase --continue”之后),您可以使用以下命令将您的 rebased 更改推送到 gerrit:
git rebase --continue
git push origin HEAD:refs/for/master