Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give user specific file access in gitlab?

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

GitLab Version: 8.1.3

like image 661
Evren Avatar asked Nov 07 '15 21:11

Evren


1 Answers

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

The easiest workaround would be to setup a separate repo with only the content of that directory in it, for you to monitor and extract a patch whenever something changes in the folder:

git format-patch master --stdout > a_folder.patch
like image 122
VonC Avatar answered Sep 30 '22 12:09

VonC