Commit edits for files in non-bare repos