1

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

Community
  • 1
  • 1
Tony Vincent
  • 13,354
  • 7
  • 49
  • 68
  • are you using github as well? – Chris Maes Aug 26 '16 at 07:30
  • What are you using as your Git server? Github or GitLab or Stash or Gitolite? As far as I remember, Github, GitLab and Stash had the feature to prevent force pushes. This is a question you have to ask the sales/technical teams of the Git servers. Not stackoverflow. – Nav Aug 26 '16 at 07:42
  • We use our own git server – Tony Vincent Aug 26 '16 at 08:46

2 Answers2

2

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)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

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.

Community
  • 1
  • 1
Nav
  • 19,885
  • 27
  • 92
  • 135