The Git Workflow

Git·1 min read·Jan 1, 2025

In Git, the "workflow" refers to the series of steps developers follow to organize their work and save the changes made to a codebase.

In essence, this workflow consists of three steps involving three distinct locations (or areas) where the files are stored, tracked, and managed:

  1. The working tree

  2. The staging area

  3. The repository

The working tree

The working tree, also known as the working directory, is the directory on your local machine that contains all the files of your project, in their current state of development.

It is the area where you add, edit, and remove files through the command-line interface or your text editor.