The Git Workflow
Git·2 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:
-
The working tree
-
The staging area
-
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.
Unlock the Build CLI Apps in JavaScript & Node.js module
Learn how to build, integrate, and safeguard scalable CLI tools, scripts, and apps with JavaScript, Node.js, npm, and Git.
You get immediate access to:
- 45 focused lessons across JavaScript, Node.js, npm, and Git
- 17 real-world projects with commented solutions
- Ongoing updates to this bundle
- Lifetime access to this bundle