> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# git_commits_get

> Read a commit object: its message, its tree SHA and its parents. `repos_get_commit` is the richer view, with the diff and the file list.

<div className="tool-route"><span className="tool-row-method" data-method="GET">GET</span><code>{"https://api.github.com/repos/{owner}/{repo}/git/commits/{commitSha}"}</code></div>

```python github_git_commits_get.py theme={null}
from charter.packs import github

result = await github.git_commits_get.ainvoke({"owner": ..., "repo": ..., "commitSha": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                             | Type     | Description                                                                              |
  | ----------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span>     | `string` | The account owner of the repository. The name is not case sensitive.                     |
  | `repo` <span className="required" title="required">\*</span>      | `string` | The name of the repository without the `.git` extension. The name is not case sensitive. |
  | `commitSha` <span className="required" title="required">\*</span> | `string` | The SHA of the commit.                                                                   |
</div>
