Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Git Knowledge Snack
Logo
Git Knowledge Snack
  • Agenda
  • Introduction
  • Git Concepts
    • Distributed Version Control System
      • The Past
      • Git as a Distributed Version Control System
    • Directed Acyclic Graph
    • Git Objects
      • Git Blob
      • Git Tree
      • Git Commit
    • Git Objects - Example
    • Git Objects - Summary
    • Git References
      • Tags
      • Branches
      • Remotes
      • HEAD
    • Git References - Summary
    • The .git Directory - References
    • The .git Directory - Objects
  • Next
Back to top
View this page
Edit this page

Git References¶

For not having to remember git hashes for addressing specific commits, it would be easier to link a commit to a simple name so you could use that simple name rather than the SHA-1 value.

In Git, these names are called references or refs.

Most important references are:

  • Tags
  • Branches
  • Remotes
  • HEAD

Sources:

  • https://git-scm.com/book/en/v2/Git-Internals-Git-References

Next
Tags
Previous
Git Objects - Summary
Copyright © 2025, Björn Ricks CC-BY-SA-4.0
Made with Sphinx and @pradyunsg's Furo