ref

A Git name that points at a commit, such as a branch (refs/heads/main) or a tag (refs/tags/v1.0).

In more detail

Local branches live under refs/heads, remote-tracking branches under refs/remotes, and tags under refs/tags. Each holds one object ID. HEAD is a special ref that usually names another ref rather than an ID.

Example

ls .git/refs/heads

Related terms

Taught in

References

Certification courses