Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 907 Bytes

File metadata and controls

23 lines (19 loc) · 907 Bytes
title Git references
shortTitle References
intro Use the REST API to interact with references in your Git database on {% data variables.product.product_name %}
versions
fpt ghae ghec ghes
*
*
*
*
topics
API
allowTitleToDifferFromFilename true
autogenerated 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.product_name %}.