After making a hosted repository, you can change how and by whom it’s accessed. By default, logged in users can read from the repository by the protocol set by the service (SSH and/or HTTPS).
You can change the SSH user access to the repository, and the write access over HTTPS. These settings supercede the global access setting.
Select Xcode in the Server app sidebar, then click Repositories.
Select the repository, then click Edit .
Select or deselect HTTPS Access, as desired.
Edit SSH access by clicking Edit.
Click the “This repository can be modified by” pop-up menu, then choose one of the following:
Only some users
Logged in users
If you chose “logged in users,” click OK. You’re finished.
In the users and groups sheet, enter a user or group name.
To add more users or groups, click Add , then enter another name.
When you’ve added all the desired users and groups, click OK.