pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/github/docs/commit/956895043b248a6915c977975a3c81eede5f83f7

/> update intros (#27306) · github/docs@9568950 · GitHub
Skip to content

Commit 9568950

Browse files
author
Sarah Edwards
authored
update intros (#27306)
1 parent b3fb11e commit 9568950

5 files changed

Lines changed: 34 additions & 15 deletions

File tree

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy