Tony Vincent
Tony Vincent

Reputation: 14262

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

Upvotes: 1

Views: 1054

Answers (2)

Nav
Nav

Reputation: 20648

Depending on what you are using as your Git server: Github or GitLab or Stash or Gitolite? As far as I remember, Github force push, GitLab, gitolite force push and Stash force push features exist. You will find definitive answers to this question on the respective servers websites. All of them have explained it.

If you have further doubts, write to their sales/technical teams. They have dedicated people who will answer your queries in detail.

Upvotes: 0

VonC
VonC

Reputation: 1323145

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)

Upvotes: 2

Related Questions