Added reset command before checkout.