Refs

Back to Git Internals

Human-readable pointers to commits. Branches are refs that move forward with new commits. HEAD points to the current branch or commit. Tags are refs that do not move. Refs make the commit graph navigable.

Key Properties

  • The DAG (refs point into the graph)

git internals refs