pub fn checkout_detached_in(worktree: &Path, commit: &str) -> Result<()>
Move an existing worktree’s detached HEAD to commit, without touching any branch.
commit