How to change topic name of Gerrit via command line
We can set initial topic name by: git push origin HEAD:refs/heads/master/topic_name But I wonder how could I change the topic name via command line later on? Thanks in advance.
You can set the topic using REST
https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-topic
Simply push your local branch under a different name:
git push <remote> <remote>/<old_name>:refs/heads/<new_name> :<old_name>
In your case:
git push origin HEAD:refs/heads/master/<new_name> :refs/heads/master/topic_name
Here, you push:
下一篇: 如何通过命令行更改Gerrit的主题名称