How can I restrict branch acces to specific users of Git on centos 7 server?

62 Views Asked by At

I successfully configured centos 7 machine as git server. Now, I have a requirement where I want to keep some documents on a branch(say some admin branch) which should be accessible to few of my teammates and not for other teammates.

How can I achieve that. Thanks in advance.

1

There are 1 best solutions below

0
On BEST ANSWER

A lightweight solution would be to manage ACL (Access Control Levels) through gitolite.

It is just an authorization layer, which can be enough for a few members.

A more complete (but complex) option would be to install GitLab CE.