Creates a new permanent commit on the given branch. Throws if the branch doesn’t exist. Throws if latestCommit is passed and is not the latest commit.
40 hex character unique identifier.
If present, this existing commit will be the merge parent of the new commit. It will be made permanent if not already, to prevent the merge parent from being compacted.
40 hex character unique identifier.