Skip to content

Commit 102e161

Browse files
authored
Merge branch 'main' into graphql-schema-update
2 parents 87f1be5 + 9568950 commit 102e161

File tree

5 files changed

+34
-15
lines changed

5 files changed

+34
-15
lines changed

content/rest/git/blobs.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: Blobs
3-
intro: 'A Git blob (binary large object) is the object type used to store the contents of each file in a repository.'
2+
title: Git blobs
3+
shortTitle: Blobs
4+
allowTitleToDifferFromFilename: true
5+
intro: 'The Git blob API lets you create and get a Git blob (binary large object), the object type used to store the contents of each file in a repository.'
46
versions:
57
fpt: '*'
68
ghes: '*'
@@ -11,7 +13,9 @@ topics:
1113
miniTocMaxHeadingLevel: 3
1214
---
1315

14-
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/v1/Git-Internals-Git-Objects)
16+
## About the Git blob API
17+
18+
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/v1/Git-Internals-Git-Objects)
1519
to your Git database on {% data variables.product.product_name %}. Blobs leverage [these custom media types](#custom-media-types-for-blobs). You can read more about the use of media types in the API [here](/rest/overview/media-types).
1620

1721
### Custom media types for blobs

content/rest/git/commits.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: Commits
3-
intro: 'A Git commit is a snapshot of the hierarchy ([Git tree](/rest/reference/git#trees)) and the contents of the files ([Git blob](/rest/reference/git#blobs)) in a Git repository.'
2+
title: Git commits
3+
shortTitle: Commits
4+
allowTitleToDifferFromFilename: true
5+
intro: 'The Git commits API lets you read and write commit objects to your Git database on {% data variables.product.product_name %}.'
46
versions:
57
fpt: '*'
68
ghes: '*'
@@ -11,4 +13,6 @@ topics:
1113
miniTocMaxHeadingLevel: 3
1214
---
1315

14-
These endpoints allow you to read and write [commit objects](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects) to your Git database on {% data variables.product.product_name %}.
16+
## About the Git commits API
17+
18+
A Git commit is a snapshot of the hierarchy ([Git tree](/rest/reference/git#trees)) and the contents of the files ([Git blob](/rest/reference/git#blobs)) in a Git repository. These endpoints allow you to read and write [commit objects](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects) to your Git database on {% data variables.product.product_name %}.

content/rest/git/refs.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: References
3-
intro: 'A Git reference (`git ref`) is just a file that contains a Git commit SHA-1 hash.'
2+
title: Git references
3+
shortTitle: References
4+
intro: 'The Git references API lets you read and write references to your Git database on {% data variables.product.product_name %}'
45
versions:
56
fpt: '*'
67
ghes: '*'
@@ -12,4 +13,6 @@ miniTocMaxHeadingLevel: 3
1213
allowTitleToDifferFromFilename: true
1314
---
1415

15-
When referring to a Git commit, you can use the Git reference, which is an easy-to-remember name, rather than the hash. The Git reference can be rewritten to point to a new commit. A branch is just a Git reference that stores the new Git commit hash. These endpoints allow you to read and write [references](https://git-scm.com/book/en/v1/Git-Internals-Git-References) to your Git database on {% data variables.product.product_name %}.
16+
## About the Git references API
17+
18+
A Git reference (`git ref`) is a file that contains a Git commit SHA-1 hash. When referring to a Git commit, you can use the Git reference, which is an easy-to-remember name, rather than the hash. The Git reference can be rewritten to point to a new commit. A branch is a Git reference that stores the new Git commit hash. These endpoints allow you to read and write [references](https://git-scm.com/book/en/v1/Git-Internals-Git-References) to your Git database on {% data variables.product.product_name %}.

content/rest/git/tags.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: Tags
3-
intro: 'A Git tag is similar to a [Git reference](/rest/reference/git#refs), but the Git commit that it points to never changes.'
2+
title: Git tags
3+
shortTitle: Tags
4+
allowTitleToDifferFromFilename: true
5+
intro: 'The Git tags API lets you read and write tag objects to your Git database on {% data variables.product.product_name %}.'
46
versions:
57
fpt: '*'
68
ghes: '*'
@@ -11,4 +13,6 @@ topics:
1113
miniTocMaxHeadingLevel: 3
1214
---
1315

14-
Git tags are helpful when you want to point to specific releases. These endpoints allow you to read and write [tag objects](https://git-scm.com/book/en/v1/Git-Internals-Git-References#Tags) to your Git database on {% data variables.product.product_name %}. The Git tags API only supports [annotated tag objects](https://git-scm.com/book/en/v1/Git-Internals-Git-References#Tags), not lightweight tags.
16+
## About the Git tags API
17+
18+
A Git tag is similar to a [Git reference](/rest/reference/git#refs), but the Git commit that it points to never changes. Git tags are helpful when you want to point to specific releases. These endpoints allow you to read and write [tag objects](https://git-scm.com/book/en/v1/Git-Internals-Git-References#Tags) to your Git database on {% data variables.product.product_name %}. The Git tags API only supports [annotated tag objects](https://git-scm.com/book/en/v1/Git-Internals-Git-References#Tags), not lightweight tags.

content/rest/git/trees.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: Trees
3-
intro: 'A Git tree object creates the hierarchy between files in a Git repository. '
2+
title: Git trees
3+
shortTitle: Trees
4+
allowTitleToDifferFromFilename: true
5+
intro: 'The Git trees API lets you read and write tree objects to your Git database on {% data variables.product.product_name %}.'
46
versions:
57
fpt: '*'
68
ghes: '*'
@@ -11,4 +13,6 @@ topics:
1113
miniTocMaxHeadingLevel: 3
1214
---
1315

14-
You can use the Git tree object to create the relationship between directories and the files they contain. These endpoints allow you to read and write [tree objects](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Tree-Objects) to your Git database on {% data variables.product.product_name %}.
16+
## About the Git trees API
17+
18+
A Git tree object creates the hierarchy between files in a Git repository. You can use the Git tree object to create the relationship between directories and the files they contain. These endpoints allow you to read and write [tree objects](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Tree-Objects) to your Git database on {% data variables.product.product_name %}.

0 commit comments

Comments
 (0)