Commit a file.