git worktree remove <worktree>

Remove a working tree

Arguments

NameDescription
worktreeWorking trees can be identified by path, either relative or absolute

Options

NameDescription
-f, --forceRemove refuses to remove an unclean working tree unless --force is used. To remove a locked working tree, specify --force twice