Git Worktree Naming Patterns
When creating a new worktree, WorktreeWise maintains a clean separation between two identifiers:
- Worktree Name: Displayed in the application UI, matching the Git branch or reference name.
- Worktree Folder Name: The physical directory created on disk, formatted according to your configured naming template.
This separation ensures that worktrees remain easily identifiable in both the WorktreeWise interface and your local filesystem.
Supported Placeholders
You can use the following placeholders when constructing naming patterns:
| Placeholder | Replaced With | Example Output |
|---|---|---|
{repo} | Primary repository name | my-project |
{branch} | Sanitized branch or tag name | feature-auth |
Built-In Pattern Presets
WorktreeWise provides four preconfigured naming templates:
| Pattern Template | Generated Folder Example | Best Used For |
|---|---|---|
{repo}__wt__{branch} (Default) | my-project__wt__feature-auth | Clear visual separation between project root, worktree marker (wt), and branch. |
{repo}__{branch} | my-project__feature-auth | Shorter directory paths while retaining project affiliation. |
{repo}-wt-{branch} | my-project-wt-feature-auth | Single-hyphen naming conventions. |
wt__{repo}__{branch} | wt__my-project__feature-auth | Clusters all worktrees together alphabetically in the parent directory. |
Configure the Default Naming Pattern
To change the default pattern applied to all newly created worktrees:
- Open Settings (
Shift + S) and select the Worktrees tab. - Select an existing preset from the dropdown, or enter a custom pattern using
{repo}and{branch}placeholders. - Select + (Add) to save a custom pattern to your presets.
- The active pattern is saved automatically.

If no custom pattern is selected, WorktreeWise defaults to {repo}__wt__{branch}.
Update the Naming Pattern for an Existing Worktree
To re-evaluate and rename the filesystem folder of an existing worktree:
- In the Worktrees sidebar, locate the worktree.
- Open the three-dot Actions menu and select Change Naming Pattern.
- Select or enter the updated pattern in the modal dialog.
- Select Apply to rename the directory on disk and update Git administrative pointers.

Changing the naming pattern of an existing worktree renames its physical directory on disk. Close any running terminals, dev servers, or open editors pointing to the old path before applying changes.
Related Pages
- Create a Git Worktree: See naming patterns applied during worktree creation.
- Rename a Worktree: Change the branch and directory name simultaneously.
- Settings Reference: Explore all worktree configuration options.