API Reference/Git
Get a commit object
Get a commit from the Git database with detailed information.
GET
/git/v1/repo/{repo}/git/commits/{hash}Path Parameters
repoRequiredstringThe repository id
Format:
"uuid"hashRequiredstringThe object's hash
Response Body
200
Commit retrieved successfully
authorRequiredobjectThe author of the commit
committerRequiredobjectThe committer
messageRequiredstringThe commit message
treeRequiredobjectThe ID of the tree pointed to by this commit
parentsRequiredarray<object>Parent commit(s) of this commit
shaRequiredstringThe commit's hash ID
400
Invalid request
messageRequiredstring403
Forbidden
messageRequiredstring404
Commit not found
messageRequiredstring500
Internal server error
messageRequiredstringCommit retrieved successfully