Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the topic from the command line when I push a new commit to gerrit?

Tags:

git

gerrit

When uploading a git commit for code review on Gerrit (2.8), I would like to be able to set the topic field (e.g. g-tune-pme-reform here https://gerrit.gromacs.org/#/c/3453/3). How can this be done from the command line? Can it be done in the original git push?

like image 958
mabraham Avatar asked May 19 '14 10:05

mabraham


People also ask

How do you create a commit on the command line?

The easiest way to create a Git commit with a message is to execute “git commit” with the “-m” option followed by your commit message. When using the Git CLI, note that you should restrict your commit message in order for it not to be wrapped.


1 Answers

yes, it is possible using the push command:

git push origin HEAD:refs/for/master/<topic_name>
like image 152
laplasz Avatar answered Sep 19 '22 18:09

laplasz