git alias for HEAD:refs/for/master

前端 未结 8 2250
予麋鹿
予麋鹿 2020-12-02 09:18

I am configuring Gerrit and I would like to avoid writing:

git push gerrit HEAD:refs/for/master

I would like to write:

8条回答
  •  臣服心动
    2020-12-02 09:37

    You might also be interested in git-review, which not only eliminates the push by simply providing for:

    git review
    

    ... but also lets you do things like:

    git review branchname
    

    Checkout the Usage section on the link above for more.

提交回复
热议问题