Skip to content
Versora
All features

Worktrees

Handle the hotfix without stashing your half-done feature.

The problem

Pausing a feature to review an MR or fix a bug shouldn't take a stash, a checkout and reinstalling dependencies.

6 features

With worktrees, each branch lives in its own folder, and you switch tasks without putting anything away. The hard part is everything else: the new folder comes without the .env and without installed dependencies, and it's easy to forget what's open where. Versora takes care of that part, in the WORKTREES section of the left panel.

A new worktree starts with the same graph view as the source repository, hidden and solo branches included. And an MR under review can also open straight in a worktree.

Step by step

How it works in Versora

1Step 1 of 4

Prepare the new worktree

Right after you create a worktree, the app shows the ignored files that the root .worktreeinclude selects, such as .env, and the repository's setup commands, such as npm install. “Prepare” copies the files and runs the commands in the new folder, with live output and “Cancel”.

It only copies files ignored by git, within the same repository, without overwriting anything.

The command this replaces
In the terminal3×
git worktree add ../portal-hotfix -b hotfix/timeoutcp .env ../portal-hotfix/cd ../portal-hotfix && npm install
In Versora · one action

“Prepare”: copies the .env and runs npm install.

2Step 2 of 4

Each worktree's WIP in the graph

Every other worktree with changes gets a “// WIP” row above the commit it's on. Select the row to see the files and actions, or double-click it to open that worktree's tab.

On a single screen, you see what's half done in each folder.

3Step 3 of 4

Move between worktrees

Started the change in the wrong worktree? Move the changes from the menu of the WIP row, of a file or of the worktree, and the commits with “Cherry-pick into another worktree” or “Move to another worktree”.

The app checks for conflicts first, and the notice's “Undo” reverts both sides.

4Step 4 of 4

Safe removal

“Remove this worktree…” and “Remove worktree and delete branch…” check first what would be lost. If anything would be, the app asks you to type the name.

Ctrl+Z brings the branch back, but not the folder. You can also lock and unlock a worktree.

And there's more

2 more Worktrees features

Grouped by who gets the most out of them. Open a feature to see the details.

You'll like these if you…

want a friction-free day

  • Worktrees · 1e1b079

    Only this worktree

    One click shows only the worktree's branch and its upstream in the graph.

juggle many repositories

  • Worktrees · d9de421

    Grouped tabs

    The tabs of the repository and its worktrees sit side by side, in the same color, and the terminal switches along with them.