1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/content/rest/git/refs.md
2022-04-28 16:45:08 +00:00

863 B

title, shortTitle, intro, versions, topics, miniTocMaxHeadingLevel, allowTitleToDifferFromFilename
title shortTitle intro versions topics miniTocMaxHeadingLevel allowTitleToDifferFromFilename
Git references References The Git references API lets you read and write references to your Git database on {% data variables.product.product_name %}
fpt ghes ghae ghec
* * * *
API
3 true

About the Git references API

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 to your Git database on {% data variables.product.product_name %}.