Gitolite restrict access to branch

后端 未结 3 1065
生来不讨喜
生来不讨喜 2021-01-03 08:15

I have GITOLITE on my server and I want to configure access to my repository. I want to restrict access to some branches for some users. I try a lot of variants how to confi

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 09:03

    I know it's an old topic, but I did some research recently and ended up here. Quick update about the commentary from the answer at the top .

    I'm using v3.6.4 and the following solution is working:

    @teamA = user1 user2
    @teamB = user3 user4
    
    repo foo
    RW+ = @teamA
    R = @teamB
    RW+ ref/heads/banana = @teamB
    

    In this case, the teamB is allowed to clone the repo "foo" and push only to the branch "banana"

提交回复
热议问题