Implement pull and cleanup commit flow