取消发布Gerrit更改 [英] Unpublish gerrit change

查看:100
本文介绍了取消发布Gerrit更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心将对Gerrit的更改本应作为草稿进行了推送.现在,我想将更改取消发布回草稿.

I have accidentally pushed a change to gerrit that should have been pushed as a draft. Now I'd like to unpublish the change back to a draft.

再次将其推送到refs/drafts/*不起作用,因为它没有更改.

Pushing it again to refs/drafts/* doesn't work as it isn't changed.

更新:

我遵循了 mvp

I followed the suggestions of mvp and HiB; I abandoned the change, amended the commit message (removing the change-id, letting the post-commit hook generate a new change-id) and pushed it again. This resulted in a 'new' draft change. At first it looks OK, but history etc. isn't preserved of course. Not a big issue, but not the clean solution I'm looking for.

推荐答案

发布更改后,您不能将其重新设置为草稿,但可以为发布的更改创建新的草稿补丁集.

Once a change is published you cannot set it back to draft, but you may create new draft patch sets for a published change.

这篇关于取消发布Gerrit更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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