I work on a private GitLab and I have multiple branches. I want to share a single branch with an external developer.
This developer is allowed to read or write on this branch only. He is not allowed to see the history of any of my other branches.
(I want to merge his work to my branches periodically.)
Is it possible to do this with GitLab?
Thanks in advance for your answer.
Go to your project and select Settings > Repository. Expand Protected branches. From the Allowed to merge list, select a role, or group that can merge into this branch. In GitLab Premium, you can also add users.
You should be able to declare a new empty repo on gitlab, and add a remote url to your local repo.
That means:
The idea remains: you can protect branch against push (write), but not against read, hence the second repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With