beginnerGit Fundamentals
Working Directory
The Definition
The working directory contains the actual files you see and edit on your computer.
Mental Model
"Your working directory is like the canvas you're painting on. Changes you make here are like pencil marks - they're there, but not yet permanently recorded."
Visual Simulation
Live Engine
workspace/app.js
Unsaved Changes
Watch Out (Common Pitfalls)
!
Making changes without understanding they're in the working directory
!
Confusing working directory with the staging area
!
Not checking git status before committing
Hands-on Command
shell
~ $
git status (to see what's in your working directory)