Default Worktree Location
Worktrees are stored in:worktree_dir configuration option.
Core Operations
Create Worktree
Pressc to open the creation menu with multiple options:
- Create from current branch with or without uncommitted changes
- Checkout existing branch or create new branch
- Create from GitHub/GitLab issue with automatic branch naming
- Create from open PR/MR
See Creation Modes for detailed creation workflows.
Rename Worktree
Pressm to rename the selected worktree.
- Renames both the worktree directory and branch (if names match)
- Updates all internal references
- Preserves worktree notes and metadata
- Special characters (
.,:, spaces) are converted to hyphens - Leading/trailing hyphens are removed
- Consecutive hyphens are collapsed
- Length capped at 50 characters for manual input
Delete Worktree
PressD to delete the selected worktree.
- Removes the worktree directory
- Prompts whether to delete the associated branch
- Cleans up worktree notes automatically
Absorb Worktree
PressA to merge the selected worktree back into the main branch.
The absorb operation:
- Switches to the main worktree
- Merges or rebases the feature branch (based on
merge_methodconfig) - Deletes the feature worktree and branch
Prune Merged Worktrees
PressX to prune all merged worktrees.
The prune operation:
- Refreshes PR/MR data from GitHub/GitLab
- Checks each worktree’s merge status
- Deletes worktrees with merged branches
- Removes orphaned worktree references
Requires
gh CLI for GitHub or glab CLI for GitLab to check PR/MR status.Key Bindings Summary
| Key | Action |
|---|---|
c | Create new worktree |
m | Rename selected worktree |
D | Delete selected worktree |
A | Absorb worktree into main |
X | Prune merged worktrees |
Navigation and Selection
j/k- Move selection up/downEnter- Jump to worktree (exit and cd)f- Filter worktrees by name/- Search worktrees (incremental)s- Cycle sort mode (Path / Last Active / Last Switched)
Branch Naming Conventions
Special characters are automatically converted for Git compatibility:| Input | Converted |
|---|---|
feature.new | feature-new |
bug fix here | bug-fix-here |
feature:test | feature-test |
- Leading/trailing hyphens removed
- Consecutive hyphens collapsed
- Manual input: 50 characters max
- Auto-generated: 100 characters max