checkout (detached): truncate list of orphaned commits at the new HEAD