---
title: "getCommit"
canonical: "https://support.appfire.com/space/BCCLI/65768598/getCommit"
format: markdown
---
> Macro (aura-html)

See also: [Actions](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766635)

> Macro (details)
> 
> | **Description** | Get repository commit information by commit hash. Use @last to get the last (most recent) commit or combine with filtering similar to getCommitList to find the last commit that matches all the filter conditions. |
> | --- | --- |
> | **Required Parameters** | [repository](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766277), [commit](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65767735) |
> | **Optional Parameters** | [workspace](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65765634), [regex](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65767227), [startDate](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768329), [endDate](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768238), [outputType](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768516), [select](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768292), [file](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768095), [append](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65765977), [encoding](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766303) |
> | **Type** | [Get](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768932/Action+Types#ActionTypes-Get) |
> | **Category** | [Commits](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766329/Action+Categories#ActionCategories-Commits) |
> | **Output Formats** | , |
> | **Replacement Variables** |  |
> | **Since Version** | 9.3 |
> | **Examples** | [getCommit](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766633/Examples#getCommit) |

## Related How To's

> Macro (cql-query)