Skip to content

Files

Latest commit

am-steadheiskrfelicitymay
Jan 22, 2025
ea44900 · Jan 22, 2025

History

History
21 lines (18 loc) · 967 Bytes

refs.md

File metadata and controls

21 lines (18 loc) · 967 Bytes
title shortTitle intro versions topics allowTitleToDifferFromFilename autogenerated
REST API endpoints for Git references
References
Use the REST API to interact with references in your Git database on {% data variables.product.github %}
fpt ghec ghes
*
*
*
API
true
rest

About Git references

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.github %}.