git alias for HEAD:refs/for/master

前端 未结 8 2229
予麋鹿
予麋鹿 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:26

    And if you want to allow direct push to branch in refs/heads/ you simply add a right in gerrit web gui:

    1. open project properties,
    2. pick access,
    3. Add Reference,
    4. refs/heads/*
    5. pick "Push"
    6. type group name,
    7. refs/heads/*
    8. save.

    youre done.

提交回复
热议问题