Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com> Co-authored-by: Felicity Chapman <felicitymay@github.com>
22 lines
816 B
Markdown
22 lines
816 B
Markdown
---
|
|
title: REST API endpoints for Git commits
|
|
shortTitle: Commits
|
|
allowTitleToDifferFromFilename: true
|
|
intro: >-
|
|
Use the REST API to interact with commit objects in your Git database on {%
|
|
data variables.product.github %}.
|
|
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
|
|
fpt: '*'
|
|
ghec: '*'
|
|
ghes: '*'
|
|
topics:
|
|
- API
|
|
autogenerated: rest
|
|
---
|
|
|
|
## About Git commits
|
|
|
|
A Git commit is a snapshot of the hierarchy ([Git tree](/rest/git/trees)) and the contents of the files ([Git blob](/rest/git/blobs)) in a Git repository. These endpoints allow you to read and write [commit objects](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects#_git_commit_objects) to your Git database on {% data variables.product.github %}.
|
|
|
|
<!-- Content after this section is automatically generated -->
|