Skip to main content
In Diversion, you can shelve your current work and apply it later when switching back to the original branch. This works similarly to the “stash” mechanism in Git.

When to use shelves

  • Switching context: Save work-in-progress before switching to another branch
  • Experimenting: Try out changes without committing, easily revert if the experiment doesn’t work
  • Working across machines: Shelve changes on one computer and apply them on another. Shelves are stored in the cloud per repository, so they are available from any workspace on the same repo.

Creating a shelf

Use the shelf button in your workspace to create a shelf.
  1. Select the files you want to shelve in your workspace
  2. Click the arrow on the right side of the Commit… button and select Shelve… to open the naming dialog.
  3. Name your shelf
  4. Click Create shelf

Automatic shelves

When switching branches with uncommitted changes, a dialog asks what you would like to do with them. Select Shelve for later to create an automatic shelf.

Naming your shelf

When creating a shelf, you can:
  • Enter a custom name (max 60 characters)
  • Click Generate name next to the name field to create a name like my_branch (2025-01-13 13:00:00)
Shelf names must be unique within your repository.

Managing shelves

Open the branch selector and switch to the Shelves tab to view and manage your shelves. Each shelf shows its name, the branch it was shelved from, and when it was created. To apply, rename, or delete a shelf, right-click it, or hover over it and click the … icon at the right of its row.

Preview

Click on a shelf to preview its contents before applying.

Apply

Select Apply to restore the shelved changes to your workspace.
If the shelved changes conflict with your current workspace, you’ll need to resolve the conflicts before continuing.

Rename

Select Rename to change the shelf name.

Delete

Select Delete to permanently remove a shelf. This action cannot be undone. Deleting a shelf also frees the storage it used, after the next daily storage calculation.
For CLI usage, see the shelf command reference.