# Method Git.Export()->commit()

Method commit

  `void commit(string ref, string|void commit_marker, string|void author_info, string committer_info, string message, string|void ... parents)`

Description

  Create a new commit on a branch.

Parameter `ref`

  Reference to add the commit to. Typically `"refs/heads/"` followed by a branchname, or `"refs/notes/commits"`.

Parameter `commit_marker`

  Optional export marker for referring to the new commit.

Parameter `author_info`

  Optional author information. Defaults to committer_info.

Parameter `committer_info`

  Name, email and timestamp for the committer. See format_author() for details.

Parameter `message`

  Commit message.

Parameter `parents`

  The ordered set of parents for the commit. Defaults to the current HEAD for ref, if it exists, and to the empty set otherwise.

  The set of files for the commit defaults to the set for the first of the parents, and can be modified with filemodify, filedelete, filecopy, filerename, filedeleteall and notemodify.