Set up a repository

Xcode service can host a Git repository. Git is a free, open-source version management system for code. For more information about Git, see the Git website.

A shared code repository helps groups work on large complicated software projects without undoing each other’s changes. If you don’t already have a source code version management system, Xcode service can provide one.

  1. Select Xcode in the Server app sidebar, then click Repositories.

  2. Configure network access to all hosted repositories.

    • Click Edit to choose the protocol that groups will use to access any repository, then click OK.

      HTTPS is useful if you have SSL certificates for the server.

      SSH is useful if your organization uses SSH keys for authentication.

  3. Configure creator rights to all hosted repositories.

    1. Click Edit to choose who can create repositories, then select one of the following:

      • Anyone

      • Logged in users

      • Only some users

      If you choose “anyone” or “logged in users,” click OK. You’re finished.

    2. In the users and groups sheet, enter a user or group name.

    3. To add more users or groups, click Add add, then enter another name.

    4. When you’ve added all the desired users and groups, click OK.

  4. Click Add add to create a repository.

  5. Name the repository.

    The name will be part of the access URL.

  6. Configure user access to the repository.

    1. Select or deselect HTTPS Access, as desired.

    2. Edit the SSH access by clicking Edit.

    3. 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 choose “logged in users,” click OK. You’re finished.

    4. In the users and groups sheet, enter a user or group name.

    5. To add more users or groups, click Add add, then enter another name.

    6. When you’ve added all the desired users and groups, click OK.

  7. Click Create.