Skip to content
techsnow

Introduction

How Git Works

Git moves your changes through three areas:

AreaWhat it isCommand to move forward
Working directoryThe files you are editing right nowgit add
Staging areaChanges you've chosen for the next commitgit commit
RepositoryThe saved history of commitsgit push (to GitHub)

The staging area is what makes Git flexible: you can edit ten files but commit only the three that belong together.