how to quit after commit a message.