Changes Transport Pipeline
Select any action arrow to inspect exact commands
01
Working DirectoryYour local untracked files
02
Staging AreaPrepared for the next commit (Index)
03
Local RepositoryYour commit history (.git)
04
Remote RepositoryGitHub, GitLab, or origin server
Supplementary Workflows
Day-to-day essential concepts
/
git add

Stage changes

Move changes from the working directory to the Staging Area (Index).

$git status

Displays the state of modified, tracked, and untracked files

Run this before staging files to verify exactly what changed.

Standard
$git diff

Shows unstaged line-by-line code differences

Compares your working directory against the staging area.

Standard
$git add

Stages a specific file for the next commit

Example: git add index.html styles.css

Basic
$git add .

Stages all changes in the current directory and subdirectories

Includes modifications, new files, and deletions.

Basic
$git add -p

Interactive patch mode: review and stage hunk by hunk

Best practice for crafting clean, atomic commits.

Advanced