Browse the guide

Folders and repositories

Link code on your computer, add a hosted repository, or clone a local copy.

A remote repository and its local folder appear side by side in Sources.

A remote repository and its local folder appear side by side in Sources.

Use Sources to connect a project to its code. Choose the option that matches where the code lives:

You have… What to do
Code already on your computer Link its local folder.
A repository on GitHub, GitLab, or another Git host Add its remote URL. This saves a reference to the repository.
A remote repository you want to work on locally Add it, then use Clone repository to download a local copy.

You can link several repositories and folders to one project. Repository activity, such as issues and build results, also needs a GitHub, GitLab, or Bitbucket Cloud connection.

Add sources

  1. Open Sources → Add source.
  2. To add a repository, use Add remote URL under Repositories or select one from a connected account.
  3. To link code already on your computer, use Choose folder under Local folders.
  4. Choose the repository associated with each folder, if applicable.
  5. Select Save sources.

Several folders can belong to the same repository, or a folder can have no linked repository. Linking a folder leaves its files where they are.

Clone a repository

From the repository’s menu, choose Clone repository, select the parent folder where you want the code, then confirm. Orbit downloads a local copy and links it to the project. Private repositories use your local Git credentials, separate from the connection used to read repository activity.

Open and change a folder

Select Open folder in the desktop app to open an available local folder.

If you move your code or restore a workspace on another computer, use the folder menu’s Change folder location or Relink in the sources dialog. Choose the folder’s new location and save. This does not move or delete files.

Use Link repository or Change repository in the folder menu to choose which repository a folder belongs to.

Remove a source

Choose Remove folder or Remove repository from its menu and confirm. This removes the source from your project. Your local files and hosted repository stay where they are.

If you change a repository URL, check Activity settings: you may need to enable activity again.