Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m

Next lesson playing in 5 seconds

Cancel

Git Basics: The Three Trees

Introduction

00:28
  • Overview
  • Transcript

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
2 lessons, 05:28

Free Lesson
1.1
Introduction
00:28

1.2
Git Basics: The Three Trees
05:00


1. Git Basics: The Three Trees

1.1 Introduction

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.