Glossary Git / Term
A name that begins with refs/
(e.g. refs/heads/master
) that points to an object name or another ref (the latter is called a symbolic ref). For convenience, a ref can sometimes be abbreviated when used as an argument to a Git command; see gitrevisions(7) for details. Refs are stored in the repository.
The ref namespace is hierarchical.Different subhierarchies are used for different purposes (e.g. therefs/heads/
hierarchy is used to represent local branches).
There are a few special-purpose refs that do not begin with refs/
.The most notable example is HEAD
.
Permanent link ref - Creation date 2023-07-26