git worktree move <worktree> <new-path>

Move a working tree to a new location

Arguments

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

Options

NameDescription
-f, --forceMove refuses to move a locked working tree unless --force is specified twice. If the destination is already assigned to some other working tree but is missing (for instance, if <new-path> was deleted manually), then --force allows the move to proceed; use --force twice if the destination is locked