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
repo
RequiredstringThe repository id
Format:
"uuid"
hash
RequiredstringThe object's hash
Response Body
200
Commit retrieved successfully
author
RequiredobjectThe author of the commit
committer
RequiredobjectThe committer
message
RequiredstringThe commit message
tree
RequiredobjectThe ID of the tree pointed to by this commit
parents
Requiredarray<object>Parent commit(s) of this commit
sha
RequiredstringThe commit's hash ID
400
Invalid request
message
Requiredstring403
Forbidden
message
Requiredstring404
Commit not found
message
Requiredstring500
Internal server error
message
RequiredstringCommit retrieved successfully