In this course I'll teach you about Git's three trees: the HEAD, the index, and the working directory. Follow along as I explain the role of each and how they interact as you update and commit code.
In the short coffee break, we're gonna look into the idea of the three trees and Git. To better understand how Git is operating, we can use the metaphor of the three trees. These trees are sort of different collections of files that a workflow of adding and retrieving commits Git uses three different versions of files. Git uses the working directory, the index and something called head for creating and for retrieving commits.