pub fn restore_head(dir: &Path, tmp: &Path) -> Result<(), GitError>
Makes the worktree at dir equal to its HEAD commit’s tree.
dir