Git has become the most widely used system for version control and sharing code. If you want to help build open-source software, or if you want to work on a professional team, understanding Git is a must.
In this Coffee Break series, Envato Tuts+ instructor Ed Wasserman will explain some of the fundamentals of Git. Follow along as Ed explains core Git concepts, all illustrated with helpful animations.
In this course, you'll learn about the three trees: the HEAD, the index, and the working directory. Watch as Ed explains the role of each and how they interact as you update and commit code.
Why not check out our Introduction to Git and GitHub or watch the other Coffee Break Courses in this series:
1. Git Basics: The Three Trees
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.