checkout -> reset, not reset -> checkout