Commit a main file