public commit ( string $commitMsg, array $file = null, string | null $author = null, array $extraArgs = [] ) | ||
$commitMsg | string | The commit message |
$file | array | Restrict commit to the given files or NULL to commit all staged changes |
$author | string | null | The author |
$extraArgs | array | Allow the user to pass extra args eg array('-i') |