Git Terminology

Git repository

  • commit objects
  • heads - reference commit objects

Commit Object

  • files
  • parent commit objects (0..n)
  • sha1 name - a unique identifier

head (lowercase) refers to any head. HEAD is a specific head and refers to the current active head.

Referring to a Commit

  • sha1 name - at least as many characters so it is uniquely identified
  • head
  • relative (^ and ~n)
  • ref

Refspec

  • refspec - Mapping between local and remote refs (e.g. +refs/heads/*:refs/remotes/origin/*)