7. How Git Works

We’re going to dig in to some the­o­ry behind Git and under­stand how some parts of Git work. We’ll get our hands dirty and a lit­tle greasy under the hood but at the end we’ll have a sol­id of under­stand­ing of just how Git works.

Here’s what we’ll cov­er in this section:

  • Under­stand the pieces of Git — what makes it work
  • Dis­cov­er how Git stores data as objects in its database
  • Learn some of the Git innards and how the Git com­mands you use can be bro­ken down into small­er commands