Search code examples
gitacl

Set up access control in git (in our own Git server)


Is there a way that I can deny certain users from pushing into master branch on my staging/production server ? I came across this SO question posted two years ago, but I wonder if somebody can shed more light on this matter

EDIT
We are not hosting our Git projects on an external dedicated hosting sites like github


Solution

  • If you control the server, then you can add a Git repo hosting service which includes some ACL feature.

    (Gogs does not have yet that feature)