HEAD is a pointer to the branch that is currently affected by commit operations. It can be modified to point to a different branch by the checkout command.