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
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"