Skip to content

Sync and push changes

Use this guide to bring your teammates' revisions into your repository (Sync) and to send your own revisions to the server (Push). Both need a repository on a Lore server. For a local-only repository the app turns both off.

Before you start

  • Commit your changes first, so Push has revisions to send. See Commit changes. Staged changes block Sync to this revision, with the message "Unable to sync when there is a staged state. Commit or unstage your changes before syncing to a revision." Unstaged changes don't block it, but the confirmation discards them (see Sync).
  • Clone the repository from a server, or add a remote and clone it. See Add a remote and clone a repository.

Steps

Sync

  1. Select Sync. In the header at the top of the repository page, select Sync.
  2. Wait for it to finish. The app brings the branch to the latest revision on the server.

Sync is unavailable while a sync is running or a repository scan is in progress ("A repository scan is in progress. Please wait for it to finish."). If a merge has conflicts, the button's tooltip reads "Conflicts detected". Resolve them first; conflicts also block Push. See Resolve merge conflicts.

To go to one specific revision instead, select Sync to this revision on a revision in the history, then confirm in the Sync to Revision dialog. The dialog warns that this resets all local changes and can't be undone. That includes unstaged ones. When the revision is on another branch, you're switched to that branch too.

Push

  1. Select Push. In the header at the top of the repository page, select Push.
  2. Wait for it to finish. "Pushing branch" appears while the app sends your revisions.

Push is unavailable while a push is running or a repository scan is in progress.

Force sync and force push

The menu next to each button holds a forced version. Use one only when a normal sync or push can't finish, because both can destroy work and neither can be undone. The app asks you to confirm first.

  • Force sync replaces your workspace with the current branch head and overwrites local changes where they conflict.
  • Force push moves the remote branch head to your revision, which can require other users to sync again.

The Sync menu also holds Edit repository view…, which changes which folders your clone holds. It's also on the repository view pill, which is the only way to reach it for a local-only repository.