Skip to main content
GWTree supports creating multiple worktrees in a single command, perfect for working on multiple features or tasks simultaneously.

Basic Usage

Provide multiple names as arguments:
This creates three worktrees:
  • myrepo-feature-auth with branch feature-auth
  • myrepo-feature-api with branch feature-api
  • myrepo-bug-fix with branch bug-fix

Batch Creation Output

When creating multiple worktrees, you’ll see progress for each:

Batch Workflow

Handling Conflicts

Existing Directory

If a worktree directory already exists, it’s skipped:

Branch Name Conflicts

If a branch name is taken, GWTree appends a counter:

Creation Failures

If a worktree fails to create, the batch continues:

Silent Mode for Batch

Batch creation automatically uses saved configuration:
  • No interactive prompts for uncommitted changes
  • No prompts for branch switching
  • No prompts for pulling from remote
  • Uses saved editor and dependency preferences
This makes batch operations fast and non-blocking.

Combine with Skip Editor

Prevent opening editors for all worktrees:
Useful when:
  • You want to set up worktrees first, then open them manually
  • You’re scripting worktree creation
  • You’re working remotely via SSH

Use Cases

Sprint Planning

Create worktrees for all sprint tasks:

Feature Branches

Set up parallel feature development:

Bug Triage

Quickly create worktrees for multiple bug fixes:

Experimentation

Create multiple experimental branches:

Performance Considerations

Dependency Installation

Installing dependencies for multiple worktrees can take time:
See configuration guide to disable automatic dependency installation.

Editor Windows

Opening many editor windows can be resource-intensive:

Comparison with Single Creation

Examples

Create Three Features

Output:

Create Without Editor

Ticket-Based Workflow

Creates worktrees named:
  • myrepo-JIRA-101
  • myrepo-JIRA-102
  • myrepo-JIRA-103

Next Steps