Change the worktree of a common repository