pub async fn reset_detached(worktree: &Path, rev: &str) -> Result<()>
Move an existing detached worktree to rev, discarding local state.
rev