Home > Article > Development Tools > How to set gitlab's own project to be visible to some members
In daily development, sometimes we need to open the project to only some members for viewing, while others cannot view it. At this time, setting project visibility in GitLab becomes a necessary operation. So how to set the visibility of GitLab projects? Next, the specific steps will be introduced in detail.
First, log in to your GitLab account and enter the project repository page that you want to set to be visible to some members. Then, click the "Settings" tab on the warehouse page to open the warehouse settings page.
In the warehouse settings page, find the "Visibility, project features, permissions" section. There is a "Visibility" option here, we need to click this option to set the visibility of the warehouse.
In the Visibility option, there are the following visibility settings:
Here we select the Private option. Then, by checking the "Only project members" option, we can open the private repository to specified members.
Finally, we need to add the members we want to allow access to the private repository to the project members list. In the left navigation bar of the page, click the "Members" tab, then enter the GitLab user name and role (such as Developer or Master) of the member you want to add in the "Add member" box, and finally click the "Add to project" button.
After the settings are completed, designated members can access the private warehouse. Other people cannot view the contents of this private warehouse.
In summary, setting project visibility in GitLab is a very simple operation. Just set the visibility to Private in the warehouse settings page and check the "Only project members" option. Through the above steps, we can easily set up the GitLab project to only allow access to specified members.
The above is the detailed content of How to set gitlab's own project to be visible to some members. For more information, please follow other related articles on the PHP Chinese website!