git worktree move <worktree> <new-path>
Move a working tree to a new location
Arguments
Name | Description |
---|
worktree | Working trees can be identified by path, either relative or absolute |
new-path | filepaths |
Options
Name | Description |
---|
-f, --force | Move 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 |