Create branch on gerrit
For example, create branch foo based on revision of master branch.
$ssh -p 29418 <user name>@gerrit.yuneec.com gerrit create-branch Example foo master
Push change to server
$git push origin HEAD:refs/for/foo
Merge CL in gerrt
$ git fetch origin
来自 ssh://gerrit.yuneec.com:29418/Example
* [新分支] foo -> origin/foo
If you are administrator, you can push change to new branch directly without code review.
$git push origin HEAD:refs/head/foo
Delete branch on gerrit
$git push origin :foo
remote: Processing changes: refs: 1, done
To ssh://gerrit.yuneec.com:29418/Example
- [deleted] foo