commit a local file