latestOpenAPI 3.0.12026-08-10234260964.0 KB
6cc88fde6435
Repository
Get a commit object
Retrieve, by hash, an object representing a commit in the repository backing a project. This endpoint functions similarly to git cat-file -p <commit-id>. The returned object contains the hash of the Git tree that it belongs to, as well as the ID of parent commits.
The commit represented by a parent ID can be retrieved using this endpoint, while the tree state represented by this commit can be retrieved using the Get a tree object endpoint.
get/projects/{projectId}/git/commits/{repositoryCommitId}
Path parameters
projectIdstring required
repositoryCommitIdstring required