JetBrains Space Help

Attach and Detach a Repository

Space makes it possible to access and use the same repository from different projects to maintain separate code review or issue tracker workflows for two independent teams.

You can attach a repository that resides in some project to another project.

Attach a repository to another project

  1. Open the project to which you want to attach a repository.

  2. On the project sidebar, choose Repositories.

  3. Click Attach existing repository:

    attachRepository.png
  4. From the drop-down menu, choose the repository you want to attach to this project.

    The repository will be attached and listed under the Repositories section.

If a repository has been attached to another project (or several projects), it cannot be deleted from either project. First, it should be detached from all the projects except one, and only then it can be deleted.

Detach a repository

If you no longer need a certain repository in your project, you can delete it unless it is attached to another project. In this case, you can detach it from the project:

  1. Navigate to the project and open the repository that you want to detach.

  2. On the repository page, click Settings:

    chooseRepositoryAdministration.png
  3. Scroll down the Repository Settings page and click Detach repository.

    The repository will be removed from the project.

Code reviews and comments associated with the detached repository will remain in the project in the archived state. You'll be able to reply to the existing comments, but won't be able to post new ones.

Last modified: 18 August 2021