How to give a user specific access to files in gitlab?

Is there a way to grant user permissions for specfic files in the GITLAB-Repository ? I want to give the user access to only one directory in my repository.

GitLab Version: 8.1.3

+5
source share
2 answers

I am afraid that what you are asking for is not supported. You cannot grant user permissions for certain files in the git repository. In gitlab, permissions are granted to each repository.

+2
source

You can protect a branch in GitLab , but not a complete repo: if the user can see the repo, he can clone it all.

The simplest solution would be to set up a separate repo only with the contents of this directory so that you can track and retrieve the patch whenever something changes in the folder:

 git format-patch master --stdout > a_folder.patch 
+1
source

Source: https://habr.com/ru/post/1235432/


All Articles