1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/rest/git/blobs.md
2025-01-22 11:12:58 +00:00

23 lines
1019 B
Markdown

---
title: REST API endpoints for Git blobs
shortTitle: Blobs
allowTitleToDifferFromFilename: true
intro: >-
Use the REST API to interact with a Git blob (binary large object), the object
type used to store the contents of each file in a repository.
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
fpt: '*'
ghec: '*'
ghes: '*'
topics:
- API
autogenerated: rest
---
## About Git blobs
A Git blob (binary large object) is the object type used to store the contents of each file in a repository. The file's SHA-1 hash is computed and stored in the blob object. These endpoints allow you to read and write [blob objects](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects)
to your Git database on {% data variables.product.github %}. Blobs leverage [these custom media types](#custom-media-types-for-blobs). For more information about the use of media types in the API, see [AUTOTITLE](/rest/overview/media-types).
<!-- Content after this section is automatically generated -->