$ git config remote.review.pushurl "ssh://someone@ip:29418/the_project" $ git config remote.review.push "HEAD:refs/for/master"
在某个HEAD下push到gerrit
$ git push review
或者在.git/config中[remote "origin"]下添加:
push = refs/heads/master:refs/for/master
或者
push = HEAD:refs/for/master