Wednesday 02 December 2026 19:00:38 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Ref

A Git reference, such as a branch tip or tag, that points to a specific commit.

A Git reference, or ref, is a human-readable name that points to a commit. Branches and tags are common refs: a branch typically moves forward as new commits are added, while a tag usually marks a specific point in a repository’s history. Refs let people and tools work with meaningful names instead of commit identifiers.

Refs matter for security and reliability because they determine which code is built, reviewed, or released. In attacks, stolen credentials or compromised automation may be used to move a branch ref to unauthorized code or alter a release tag. Defenses include tightly scoped permissions, protected branches, audit logs, and checks that verify the expected ref and commit before builds or deployments. With repository backends that provide different consistency guarantees across refs, automation should also be designed and tested against the backend’s documented behavior.

← WIKICROOK index