Skip to content

gtl worktree

Manage git worktrees. Run without arguments to list worktrees, pass a branch name to create one, or use subcommands to inspect and clean up existing worktrees.

Aliases

wt

Usage

bash
gtl worktree [branch] [flags]
gtl worktree [command]

Subcommands

CommandDescription
gtl worktree deleteDelete worktree for a PR or branch
gtl worktree findFind worktree for a PR or branch
gtl worktree listList worktrees
gtl worktree prunePrune stale worktrees
gtl worktree removeRemove worktree

Examples

bash
gtl worktree
gtl worktree feature/my-branch
gtl worktree list
gtl worktree find 123
gtl worktree delete feature/my-branch --dry-run

Full Help

text
Manage git worktrees. Run without arguments to list worktrees, pass a branch name to create one, or use subcommands to inspect and clean up existing worktrees.

Usage:
  gtl worktree [branch] [flags]
  gtl worktree [command]

Aliases:
  worktree, wt

Examples:
gtl worktree
gtl worktree feature/my-branch
gtl worktree list
gtl worktree find 123
gtl worktree delete feature/my-branch --dry-run

Available Commands:
  delete      Delete worktree for a PR or branch
  find        Find worktree for a PR or branch
  list        List worktrees
  prune       Prune stale worktrees
  remove      Remove worktree

Flags:
  -h, --help   help for worktree

Use "gtl worktree [command] --help" for more information about a command.

Released under the MIT License.