commit the remaining file