commit before checking out