Skip to content

Add a remote and clone a repository

Use this guide to tell Lore Desktop about a Lore server, then clone one of its repositories to your computer. For the ideas behind remotes and cloning, see Workflows in Lore Desktop.

Before you start

  • Get the server address from the person who runs the server. It looks like lores://lore.example.com.
  • Decide which folder on your computer should hold the clone.

Steps

Add a remote

  1. Open the Remote view. On the Repositories page, select Remote. If you have no remotes yet, the page says "No remotes yet - add a new remote to get started." and offers New remote. Otherwise, select the + (New Remote) button.
  2. Name the remote. In Remote name, enter a plain name, for example Team server. A name can't be blank, can't be a URL, and can't match the name of a remote you already added.
  3. Enter the server address. In Remote Server, enter the server URL, for example lores://lore.example.com. The URL must have a scheme (lores://, lore://, grpcs://, or grpc://) and only the host. A path such as /org/repo is rejected with "URL must not contain a path".
  4. Add it. Select Add remote.

The Remote view then lists the repositories on that server. While it loads, it shows "Loading repositories...". If the server has none, it shows "No repositories found on this server".

To rename a remote or change its address, right-click its tab to open its context menu and select Modify remote server. To forget a remote, select Remove remote server and confirm.

Clone a repository

  1. Open the Clone dialog. Select Clone a repository. It's on the start page and in the menu of the Repositories page. The app turns it off until you've added a remote and shows "Add a remote to clone a repository". In the Remote view you can also clone a repository straight from its row.
  2. Choose the server and the repository. Select a saved remote in Server. The list only offers remotes you added, so add the server first if it isn't listed. Then select the repository in Repository.
  3. Choose where to clone. In Where to clone, select Choose... and pick a parent folder. The clone goes into a new folder inside it, named after the last segment of the repository name.
  4. Optional: limit what you download. Repository view is Everything (no view) by default. Select Choose folders... to clone only some folders, or Load file... to use a view file.
  5. Optional: start from a branch or revision. Open Advanced and enter a branch name or a full revision hash in Start from. Changing Start from resets Repository view to Everything (no view).
  6. Clone. Select Clone. If the server needs you to sign in, the app opens your browser when you choose a repository, before you select Clone. See Sign in to a server.

A toast reading "Cloning" and the repository name appears while the app works, and the repository's row shows "Cloning…". To stop it, select Cancel clone. When it finishes, open the repository from the Repositories page.

If something goes wrong

  • "<path>" already exists. Choose a different location. The folder <parent>/<repository name> already exists, even if it's empty. Choose another parent folder, or remove the existing folder.
  • <name> is already being cloned. Wait for it to finish. Only one clone of a repository runs at a time.
  • The repository list is empty. The Clone dialog shows an empty list, without an error, when the list can't be loaded. Close it and check the Remote view, which shows the error. Neither has a Retry for the list; reopen the dialog to try again. If the app says you're signed out, see Sign in to a server.