Logo

The git workflow

The local repository consists of trees that git maintains, these are

Working Directory

Working Directory Arrow showing push of files from Index to Head

The Working Directory is a single checkout of one version of your project! This is where you will modify your files during your development process, these will be found on your own harddrive.

Index

Index Tree Arrow showing commit from Working Dir to Index

The Index stores information that will be in your next commit. This tree is also well known as the staging area.

Head

Head Tree

This tree stores all the metadata and object database for your project, it is the most important part of Git. It is what is copied when a repository is cloned!