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
| Command | Description |
|---|---|
gtl worktree delete | Delete worktree for a PR or branch |
gtl worktree find | Find worktree for a PR or branch |
gtl worktree list | List worktrees |
gtl worktree prune | Prune stale worktrees |
gtl worktree remove | Remove worktree |
Examples
bash
gtl worktree
gtl worktree feature/my-branch
gtl worktree list
gtl worktree find 123
gtl worktree delete feature/my-branch --dry-runFull 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.