We are introduced to Git’s
HEAD variable in this lesson. What is its significance in backtracking?
As we learned, the
HEAD command gives us access to the most recent commit on the branch which we’re working on. Knowing this, we can use
HEAD alongside commands like
reset to quickly access or see what changes have been made on the head commit and, potentially, to add or remove modifications easily.