Skip to content

Workflows in Lore Desktop

Lore Desktop is a desktop client for Lore, a version control system. With it, you can see what changed in your project and commit your work without a terminal. You can also branch, merge, and resolve conflicts. A repository in the app is either local-only, which needs no server or sign-in, or connected to a Lore server that your team shares. This page explains each workflow the app supports, how the workflows fit together, and which guide to follow for each one.

The examples on this page use a sample project with source code, a configuration file, and images. Your own project works the same way.

For Lore itself, including repositories, branches, and revisions, see the Lore documentation.

Choosing local or server repositories

The app shows every repository you work with on the Repositories page. Each repository is one of two kinds.

A local-only repository lives only on your computer. You make one by creating a repository with No server - local only as its Server, or by adding a local-only Lore repository that's already on your disk. You don't need a Lore server, an account, or a sign-in. You can browse, stage, commit, branch, merge, and resolve conflicts in a local-only repository.

Because no server exists for a local-only repository, the app turns off Sync and Push. The Server column shows "Personal", and every author shows as "You". We support local-only repositories so you can start working right away.

A repository on a Lore server is one your team shares. You get a copy of it by cloning it from a server you've added as a remote. These repositories have everything local-only repositories have, plus Sync and Push. Their history also shows your teammates' names. See Working with a Lore server.

To start with a local-only repository, see Create or add a local repository.

Browsing a project

When you open a repository, it opens on the File Browser tab. The other tabs are Revisions and Branches, plus any tabs that plugins add.

The Files tree on the left shows your project's folders and files. Status icons mark files that are added, modified, or deleted since the last commit. A folder that holds a changed file shows a dot, so you can find changes inside collapsed folders. The Modified files filter hides everything that hasn't changed.

When you select a file, the preview on the right shows it. The preview depends on the file type:

File type What the preview shows
Text and code — for example config/settings.json The file contents with syntax highlighting. If the file changed, added and removed lines appear inline.
Markdown — for example README.md The rendered page, with a toggle between Code and Rendered.
Images — .png, .jpg, .jpeg, .gif, .webp, for example assets/logo.png The image.
Unreal Engine assets — .uasset and .umap The asset's saved thumbnail, when it has one, and an Asset metadata: partial summary table.
Other binary files — for example .zip, .wav, .mp4 or .pdf Preview is not supported for this file type, with the file type and size.

Many tools write generated files, such as build output or logs, into the project folder. These files don't belong in version control. The right-click menu in the Files tree has Add to ignore, which adds an ignore rule for the file or folder. After the next scan, which runs on its own once you've scanned the repository before, the app stops treating the file or folder as a change.

Committing changes

A commit records a snapshot of your changes as a new revision in the branch's history. Committing in the app follows a short cycle:

  1. Edit: You change files in any tool, such as a code editor or an image editor. The app watches the repository folder, so saved changes appear in the Files tree with their status icons.
  2. Stage: Commit Changes opens the list of changes. There you choose which files go into the commit, either all at once with Stage all or one at a time. The stage is the set of changes the next commit records.
  3. Commit: You write a Summary of the change and, if you want, a longer Description. The commit button names the branch you're committing to.
  4. Review: The app opens Revisions, where your commit appears in the branch's history. Expanding an entry shows its description.

The Revisions tab lists the history of a branch, with the author, date, and revision number of each entry. The Branch selector shows another branch's history.

For the steps, see Commit changes.

Branching and merging

A branch is a separate line of history. With a branch, you can work on one change without affecting anyone else's work until you're ready. For example, you can work on a new logo on a branch called update-logo while the rest of the team keeps working on the main branch. Branch names can't contain spaces or /.

The Branches tab has two views:

  • Explorer view: A graph of branches and their revisions. This view comes from Branch Explorer (@lore/branch-explorer on the Plugins screen), a plugin that ships with the app. It's the view the tab opens first.
  • List view: A table of branches with who created each branch and its type. Tags mark the default branch and the branch you're on, and whether each branch is Local, Remote, or both.

You can create a branch from either view, and you choose its parent branch when you create it. To switch to a branch, use the branch switcher in the repository toolbar, double-click the branch in List view, or select Switch branch in Explorer view. While you have staged changes, the branch switcher in the toolbar is unavailable, so you commit or unstage them first.

Merging brings the changes from another branch into the branch you're on. When you start a merge, the app first checks whether it will cause conflicts and tells you before you confirm. A merge with no conflicts creates a merge revision on your current branch. A merge with conflicts takes you to the Conflicts page.

For the steps, see Create and merge a branch.

Resolving conflicts

A conflict happens when the same file changed in two places and Lore can't combine the changes on its own. In the app, conflicts come from merging a branch or from syncing with a server. While any conflict is unresolved, you can't commit.

The Conflicts page lists every conflicted file and how many remain. It uses four names for the versions of a file:

Version Meaning
Current The file as it is on the branch you're on.
Incoming The file as it is on the branch you're merging in.
Base The file as it was before the two branches changed it.
Result The file as it will be after you resolve the conflict.

Text files, such as config/settings.json, can be resolved line by line. You can accept the current or incoming version of each changed section, accept one side for the whole file, or edit the result yourself.

Binary files, such as images, can't be combined line by line. For assets/logo.png, the app shows the current and incoming versions side by side, and you choose one of them.

When every conflict is resolved, Resolve conflicts takes you to commit the result. If you'd rather not merge after all, you can abort the merge, which puts your files back the way they were before it.

For the steps, see Resolve merge conflicts.

Working with a Lore server

The workflows above all work in a local-only repository. A team that shares a project uses a Lore server, and the app has extra features for it. These features need a Lore server that you can reach.

  • Remotes: A remote is a Lore server the app knows about, with a name and a URL. The Remote view of the Repositories page shows the repositories on each remote you've added.
  • Cloning: Cloning downloads a repository from a server to a folder on your computer. Until you add a remote, the app turns off Clone a repository.
  • Sync: Sync brings your local copy up to date with the newest revisions on the server. It's Lore's counterpart to a Git pull. If incoming changes conflict with yours, the app shows the conflicts so you can resolve them.
  • Push: Push sends the revisions you committed on your computer to the server, so your teammates can sync them.
  • Force sync and Force push: The menus next to Sync and Push hold forced versions of each. These can overwrite work on your computer or on the server. The app asks you to confirm first, and the action can't be undone.

In a repository on a server, the history shows the name of the teammate who made each revision.

Extending the app with plugins

A plugin adds features to Lore Desktop. A plugin can add:

  • A page as a new repository tab, or as a view inside the Branches tab
  • Buttons and other content in the repository toolbar and the File Browser sidebar
  • Actions on rows in the Files tree, the branch list, and the revision history

The app ships with one plugin, Branch Explorer, which adds Explorer view to the Branches tab. If you turn Branch Explorer off, the Branches tab shows only List view.

The Plugins screen, in the Settings menu, lists each installed plugin and its details. There you can turn plugins on or off, install a plugin from a .zip package, and uninstall plugins you added. For the steps, see Manage plugins.

To write your own plugin, see Build plugins.

See also