【问题标题】:How to change topic name of Gerrit via command line如何通过命令行更改 Gerrit 的主题名称
【发布时间】:2016-10-18 22:56:15
【问题描述】:

我们可以通过以下方式设置初始主题名称: git push origin HEAD:refs/heads/master/topic_name 但我想知道以后如何通过命令行更改主题名称? 提前致谢。

【问题讨论】:

标签: git gerrit


【解决方案1】:

【讨论】:

  • 谢谢,这很有用。
【解决方案2】:

只需push your local branch under a different name:

git push <remote> <remote>/<old_name>:refs/heads/<new_name> :<old_name>

在你的情况下:

git push origin HEAD:refs/heads/master/<new_name> :refs/heads/master/topic_name

这里,你推:

  • 您的本地分支使用新的远程名称
  • “无”到旧分支(然后被删除)

【讨论】:

  • 谢谢。有什么办法只使用 gerrit 命令而不是使用 git push,考虑到你没有在本地克隆 repo。
猜你喜欢
  • 2021-03-13
  • 1970-01-01
  • 2016-05-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多