gh wt

Create and manage git worktrees

Synopsis

gh wt is a GitHub CLI extension that helps you create git worktrees. A GitHub pull request or issue URL can also be used.

gh wt

Examples

# Create worktree from PR URL
gh wt add https://github.com/owner/repo/pull/123 -a claude -- "/review"

# Create worktree from Issue URL
gh wt add https://github.com/owner/repo/issues/456 -a claude -- "implement issue #456"

# Create a worktree
gh wt add my-feature-branch

# Remove a worktree
gh wt rm pr_123

Options

FlagDescription
--no-colordisable color output
--verboseverbose output
-f, --forceforce operation without prompts

SEE ALSO