Back to roadmap

Lesson 02

Working Directory

The Working Directory is the project currently on your computer.

Visual Explanation

Ready to run git status.

You changed app.js, but Git has not prepared that change for a commit yet.

The Real Command

Terminal
git status
Example Output
On branch main
Changes not staged for commit:
  modified:   app.js

no changes added to commit

git status shows which files have changed.

Command Details

git status --short

--short makes the report compact. Each changed file appears on one concise line.

Example Output
 M app.js

Knowledge Check

Read the State of Your Project

Identify where edits live and what Git reports without changing anything.

Question 1 of 5

  1. Question 1: current
  2. Question 2: not started
  3. Question 3: not started
  4. Question 4: not started
  5. Question 5: not started
Command Challenge

You changed app.js. Type the command that asks Git which files have changed.