Skip to main content

Git Model and Objects

Use this page when the basic Git model still feels fuzzy.

Core Ideas

  • Git stores snapshots, not only line-by-line deltas
  • the repository, index, and working tree are different layers
  • a branch is a movable reference to a commit
  • HEAD usually points to your current branch

Best Local Sources