Conclusion: Git Branching

Quickly go over some important points from the previous lessons.

A branch is just a pointer

Remember these points:

  • A branch is a pointer to the end of a line of changes.
  • A tag is a pointer to a single change.
  • HEAD is where your Git repository is right now.
  • Detached HEAD means you are at a commit that has no reference (branch or tag) associated with it.

Is the master branch special?

It’s worth pointing out that apart from its default status, there is nothing special about the master branch. It’s just a name. Your principal branch might be called live, alice, pristine, main, or whatever you like.