Skip to content

Checkout commit for a revision

POST
/api/v1/git/commit/{revision}

Checkout a commit by its revision.
The revision can be anything accepted by git rev-parse. For a branch it will checkout the HEAD of the branch.

Parameters

Path Parameters

revision*

The revision of the commit to checkout.

This can be the short hash, full hash, a tag, or any other reference such as HEAD, a branch name or a tag name

Typestring
Required
Example"HEAD"

Responses

Revision checked out successfully

application/json
JSON
{
"author": {
"email": "string",
"name": "string"
},
"body": "string",
"committer": {
"email": "string",
"name": "string"
},
"id": "string",
"summary": "string",
"time": "string"
}

Samples