Lesson 02
Working Directory
The Working Directory is the project currently on your computer.
Visual Explanation
git statusEdit not inspected
index.html
style.css
app.jsChanged on disk
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 statusExample Output
On branch main
Changes not staged for commit:
modified: app.js
no changes added to commitgit 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.jsKnowledge Check
Read the State of Your Project
Identify where edits live and what Git reports without changing anything.
Question 1 of 5
- Question 1: current
- Question 2: not started
- Question 3: not started
- Question 4: not started
- Question 5: not started