Git
Objects
Every object and enum the Git tools accept.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Every object and enum the Git tools accept.
| Field | Type | Description |
|---|---|---|
path * | string | The file referenced in the tree. |
mode | TreeEntryMode | The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink. |
type | TreeEntryType | Either blob, tree, or commit. |
sha | string | The SHA1 checksum ID of an existing object to place at this path, from git_blobs_create. Use either this or content, never both. |
content | string | The content you want this file to have, as plain text. GitHub will write this blob out and use that SHA for this entry. Use either this or sha. |
delete | boolean | Set true to remove this path from the tree. GitHub answers with an error if the path is not in base_tree. |
| Field | Type | Description |
|---|---|---|
name * | string | The name of the author (or committer) of the commit. |
email * | string | The email of the author (or committer) of the commit. |
date | string | Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
| Value |
|---|
utf-8 |
base64 |
| Value |
|---|
commit |
tree |
blob |
| Value |
|---|
100644 |
100755 |
040000 |
160000 |
120000 |
| Value |
|---|
blob |
tree |
commit |
Was this page helpful?