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:

  • your local branch under a new remote name
  • "nothing" to the old branch (which is then deleted)
  • 链接地址: http://www.djcxy.com/p/90396.html

    上一篇: bitbucket推动一个功能分支成为主人

    下一篇: 如何通过命令行更改Gerrit的主题名称