Reputation: 31
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.
Upvotes: 3
Views: 3218
Reputation: 22411
You can set the topic using REST
https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-topic
Upvotes: 2
Reputation: 1326616
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:
Upvotes: -1