Skip to content

gtl worktree remove

Parent command: gtl worktree.

Remove a worktree by filesystem path. Use --force to remove a dirty worktree.

Usage

bash
gtl worktree remove <path> [flags]

Examples

bash
gtl worktree remove ../feature-branch
gtl worktree remove ../feature-branch --force

Full Help

text
Remove a worktree by filesystem path. Use --force to remove a dirty worktree.

Usage:
  gtl worktree remove <path> [flags]

Examples:
gtl worktree remove ../feature-branch
gtl worktree remove ../feature-branch --force

Flags:
      --force   Force remove worktree
  -h, --help    help for remove

Released under the MIT License.