Unpublish gerrit change

自闭症网瘾萝莉.ら 提交于 2019-12-01 09:27:54

问题


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.

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

Update:

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.


回答1:


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



来源:https://stackoverflow.com/questions/18842628/unpublish-gerrit-change

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!