commit before checkout